PDA

View Full Version : REST proxy URL: path instead of parameters



MaciejZabielski
25 Sep 2012, 11:53 AM
Hi, I'm using REST services that address resources using URL path:

http://server/api/object/{object_class}/{object_id}

rather than parameters


http://server/api/object/?{objectID=aaa}&{objectCls=123}

Is there any standard / recommended way of defining such URL building rules?
I'm not sure yet, but maybe I would like to combine that with base "API" CRUD url's that can be different based on operation performed (as extension to post/get/put methods)

MaciejZabielski
25 Sep 2012, 12:01 PM
ok, sorry for an "ignorant" post - it was to much work today I guess :)
I have found information in Ext.data.Proxy.Rest api docs, on how to generate custom URL's, that in my case contain several "components" more than ID only.