1
0

List rights are now respected

This commit is contained in:
konrad
2018-09-06 08:42:18 +02:00
committed by kolaente
parent 92174aac08
commit 521e7c3bef
5 changed files with 56 additions and 18 deletions

View File

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