Select to view content in your preferred language

Token at end of Feature Service REST url - syntax?

454
1
Jump to solution
10-02-2023 10:20 AM
TimHayes3
Frequent Contributor

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. 

 

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
MichaelJenkins
Frequent Contributor

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.

GISP

View solution in original post

1 Reply
MichaelJenkins
Frequent Contributor

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.

GISP