Added endpoint to update a users right for a list

This commit is contained in:
kolaente 2018-09-19 07:54:47 +02:00
parent 3a338f54f9
commit 4f538abc83
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
4 changed files with 34 additions and 1 deletions

View file

@ -68,7 +68,7 @@ Authorization: Bearer {{auth_token}}
###
# Give a user access to that list
PUT http://localhost:8080/api/v1/lists/28/users
PUT http://localhost:8080/api/v1/lists/30/users
Authorization: Bearer {{auth_token}}
Content-Type: application/json
@ -76,6 +76,15 @@ Content-Type: application/json
###
# Update a users access to that list
POST http://localhost:8080/api/v1/lists/30/users/3
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{"right":2}
###
# Delete a user from a list
DELETE http://localhost:8080/api/v1/lists/28/users/3
Authorization: Bearer {{auth_token}}