Within the AJAX coding example we used the HTTP method POST for calling a Resoa service.Â The expected payload for POST is the pure JSON of the request object.
Resoa also supports HTTP GET requests. Resoa per default expects the pure JSON as a query string,:
This way you can bypass the Same-Origin-Policy of AJAX / XmlHttpRequests.
Rest API – Query String versus SEO URL
As you see within the example, the HTTP GET url of a Resoa Service call does not follow the SEO principles. We are aware of this topic, but believe, that using SEO in general would reduce the flexibility of the API for complex requests.
If you need a SEO URL for your AJAX/JSONP requests, we recommend implementing an additional ServletFilter, which generates the JSON from the URL due to your business specification.