How to specify the UrlMap for Rest call
Hi,
I have a UrlMap like the one below.
<Route Url="/Results/:queryID" Method="POST" Call="QueryResults"/>
What if I have to pass two parameters to QueryResults, how to do configure Url?
Something like Url="/Results/:queryID/:parameter2" ?
Thanks.
Discussion (1)0
Comments
Yes.
Have a look at the documentation as well: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GREST_urlmap
And if you need more advanced features: https://community.intersystems.com/post/advanced-url-mapping-rest
Best, Fabian