-
Notifications
You must be signed in to change notification settings - Fork 1
Role Admin Services
Ken Williamson edited this page Jan 19, 2020
·
4 revisions
Method: POST
URL: http://localhost:3001/rs/role/add
Request headers Example:
Content-Type = application/json
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
Request Body Example:
{
"role":"testerrole1"
}
Response:
{
"success": true,
"id": 34
}
Method: GET
URL: http://localhost:3001/rs/role/get/2
2 = role
Request headers Example:
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
Response:
{
"id": 2,
"role": "user"
}
Method: GET
URL: http://localhost:3001/rs/role/list
Request headers Example:
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
Response:
[
{
"id": 1,
"role": "admin"
},
{
"id": 2,
"role": "user"
}
]
Method: DELETE
URL: http://localhost:3001/rs/role/delete/5
5 = role
Request headers Example:
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
Response:
{
"success": true
}
GoAuth2Users is maintained by Ulbora Labs LLC and others.