This content has been marked as final. Show 2 replies
Hi user538438, if that is your real name!
I use ExtJS with resource templates extensively and it works a treat.
You shouldn't be using the URI to pass data with a POST, the content should be in the body
of the request instead.
See this thread : Resource Templates : Strategy for dealing with PUT and POST
Basically you can send in parameters either as
(a) JSON (by using a JsonWriter in your ExtJS store)
(b) as a standard html form, e.g. a standard Ext.Ajax.request
The parameters are AUTOMATICALLY made available in the resource template, so
you don't need to specify what's coming into your template, (unless it's a HTTP header).
Hope this helps
Thank you for your help, it gave me a better understanding of the POST mechanism.
I will give a try to the JsonWriter ExtJS store, it's completly new for me.
Bonus question, what would be the syntax of a POST with RESTful service in APEX?