19 Nov 2012 1:27 AM #1
Unanswered: Proxy appendId adds duplicate / double id
To add parameters to an API query, I use the url path as well as the query string. Url only would be
As soon as I add extraParams in the proxy config, I get something like this
Is the duplicate id in there something avoidable or desirable?
21 Nov 2012 9:25 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
It's two different things. The Rest proxy will add the id and not look at the params.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
21 Nov 2012 6:28 PM #3
Sorry, I don't properly understand what you mean.
With two Ids in there, my API controller can grab the same value from two different variables and I guess this redundancy is not intended by design.
With appendId = true, if I don't set the extraParams, the id is added to the URL path only. As soon as I add any extraParams, I have it in the URL path and the query string at the same time. Both ids are added automatically.
With appendId = false, there is no id appended.
Does that make sense?
2 Dec 2012 6:25 PM #4
Maybe I better change my question:
Can I avoid that the id is added to the params string when I have it already in the URL path?