Revoke authentication token
Example of request:
{"token":"existing token"}
media type | data type |
---|---|
application/json | object |
media type | data type | description |
---|---|---|
application/json | object | JSON Response with information, whether the revoking has or has not been succeeded. |
Create new authentication token
Example of request:
{"userId":user_id,"context":[list of contexts]}
media type | data type |
---|---|
application/json | object |
media type | data type | description |
---|---|---|
application/json | object | JSON Response with information, whether the creation has or has not been succeeded. |
Update authentication token
Example of request:
{"token":"existing token","userId":user_id,"context":[list of contexts]}
media type | data type |
---|---|
application/json | object |
media type | data type | description |
---|---|---|
application/json | object | JSON Response with information, whether the updating has or has not been succeeded. |
Get all authentication tokens.
media type | data type | description |
---|---|---|
application/json | object | JSON Response with the list of tokens.
Example of response:
{"list":[{"context": [{"name": "Context name","code": context_code}],"userId":user_id,"userFullName":"User Full Name","token":"alphanumeric_token"}]}
|
Get all possible contexts for authentication tokens.
media type | data type | description |
---|---|---|
application/json | object | JSON Response with the list of contexts with possible endpoints.
Example of response:
{list: [{"code": 1,"name": "contextName1"},{"code":2,"name":"contextName2"}]}
|