Added namespace user rights

This commit is contained in:
konrad 2018-09-04 20:15:24 +02:00 committed by kolaente
parent 422662e3e1
commit f2758e239c
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
12 changed files with 179 additions and 4 deletions

View file

@ -1,3 +1,26 @@
# Get all namespaces
GET http://localhost:8080/api/v1/namespaces
Authorization: Bearer {{auth_token}}
Authorization: Bearer {{auth_token}}
###
# Get all users who have access to that namespace
GET http://localhost:8080/api/v1/namespaces/1/users
Authorization: Bearer {{auth_token}}
###
# Give a user access to that namespace
PUT http://localhost:8080/api/v1/namespaces/1/users
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{"user_id":2, "right": 0}
###
# Delete a user from a namespace
DELETE http://localhost:8080/api/v1/namespaces/1/users/2
Authorization: Bearer {{auth_token}}
###