PDA

View Full Version : Which data format should I return when I use a REST proxy?



Fire-Dragon-DoL
11 May 2012, 6:40 AM
I'm using ruby on rails and the rest proxy. I'm using everything through json objects because I've a single webpage app.

However, I can't find where is written how the data should be returned (as a json) from the webpage to the proxy to make it works correctly.

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.proxy.Rest
I don't know what data format every operation expects: if I have a create link, what should I return in that page? Are there any guidelines or where I can find those type of information?

Thanks for any suggestion

jay@moduscreate.com
13 May 2012, 4:44 AM
Generally an array of objects that match your model mappings.