The role services returns the roles that the user has in the current department.

a) Get Roles

 

Request (JSON)

GET /Roles/?securityToken={tokenId}
Content-Type:application/json

 

Response (JSON)

HTTP/1.1 200 OK "true"

[{"Role 1"}, {"Role 2"}, {"Role 3"}]

 

b) Set Role

 

The set role service is used for setting in the token the new role selected by the user.

 

Request (JSON)

POST /Roles/?securityToken={tokenId}
Content-Type:application/json

Body
“planner”

 

Response (JSON)

HTTP/1.1 200 OK "true"