-
Notifications
You must be signed in to change notification settings - Fork 9
Client Allowed URI Services
Ken Williamson edited this page Jan 19, 2020
·
8 revisions
Method: POST
URL: http://localhost:3000/rs/clientAllowedUriSuper/add
Request headers Example:
Content-Type = application/json
Authorization = bearer jwttokenFromGoAuth2WithSuperUser
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Request Body Example:
{
"uri":"www.ulboralabs.com",
"clientId":616
}
Response:
{
"success": true,
"id": 34
}
Method: POST
URL: http://localhost:3000/rs/clientAllowedUri/add
Request headers Example:
Content-Type = application/json
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Request Body Example:
{
"uri":"www.ulboralabs.com",
"clientId":616
}
Response:
{
"success": true,
"id": 34
}
Method: PUT
URL: http://localhost:3000/rs/clientAllowedUriSuper/update
Request headers Example:
Content-Type = application/json
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Request Body Example:
{
"uri":"www.ulboralabs.com",
"clientId":616
}
Response:
{
"success": true
}
Method: PUT
URL: http://localhost:3000/rs/clientAllowedUri/update
Request headers Example:
Content-Type = application/json
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Request Body Example:
{
"uri":"www.ulboralabs.com",
"clientId":616
}
Response:
{
"success": true
}
Method: GET
URL: http://localhost:3000/rs/clientAllowedUri/get/510
510 = id
Request headers Example:
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Response:
{
"id": 510,
"uri": "someUri",
"clientId": 10
}
Method: GET
URL: http://localhost:3000/rs/clientAllowedUri/list/101
101 = clientId
Request headers Example:
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Response:
[
{
"id": 1487,
"uri": "/ulbora/rs/client/add",
"clientId": 101
},
{
"id": 1521,
"uri": "/ulbora/rs/client/update",
"clientId": 101
}
]
Method: DELETE
URL: http://localhost:3000/rs/clientAllowedUri/delete/510
510 = id
Request headers Example:
Authorization = bearer jwttokenFromGoAuth2
clientId = 10
userId = tester (when using Auth code, Implicit, or Password tokens)
Response:
{
"success": true
}
GoAuth2 is maintained by Ulbora Labs LLC and others.