2018-07-25 22:26:53 +02:00
|
|
|
# Get all namespaces
|
|
|
|
GET http://localhost:8080/api/v1/namespaces
|
2018-09-04 20:15:24 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-09-06 08:42:18 +02:00
|
|
|
# Get one namespaces
|
|
|
|
GET http://localhost:8080/api/v1/namespaces/12
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-09-04 20:15:24 +02:00
|
|
|
# Get all users who have access to that namespace
|
2018-09-06 08:42:18 +02:00
|
|
|
GET http://localhost:8080/api/v1/namespaces/12/users
|
2018-09-04 20:15:24 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Give a user access to that namespace
|
2018-09-06 08:42:18 +02:00
|
|
|
PUT http://localhost:8080/api/v1/namespaces/12/users
|
2018-09-04 20:15:24 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
2018-09-06 08:42:18 +02:00
|
|
|
{"user_id":3, "right": 0}
|
2018-09-04 20:15:24 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Delete a user from a namespace
|
|
|
|
DELETE http://localhost:8080/api/v1/namespaces/1/users/2
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|