I have generated a token from a standalone AGIS Server. I need to add it to the end of a Feature Service REST url, what is the syntax for adding it? I have provided some example urls with a fake token at the end.
Here is my Feature Service REST url without the token:
https://myapp.mydomain/myservername/rest/services/MapServer/6
1) to add a token at the end, does is it look like this?
https://myapp.mydomain/myservername/rest/services/MapServer/6&token=ABg612765fdH
2) OR is it like this?
https://myapp.mydomain/myservername/rest/services/MapServer/6/&token=ABg612765fdH
3) OR is it like this?
https://myapp.mydomain/myservername/rest/services/MapServer/6?token=ABg612765fdH
4) OR is it like this?
https://myapp.mydomain/myservername/rest/services/MapServer/6/?token=ABg612765fdH
I hope this is easy to answer.
Solved! Go to Solution.
It would be #3 https://myapp.mydomain/myservername/rest/services/MapServer/6?token=ABg612765fdH
The ? is the delimiter that tells the server that everything after that should be key/value pairs of URL parameters. Use the & to denote another pair of parameters.
It would be #3 https://myapp.mydomain/myservername/rest/services/MapServer/6?token=ABg612765fdH
The ? is the delimiter that tells the server that everything after that should be key/value pairs of URL parameters. Use the & to denote another pair of parameters.