2018-07-26 10:29:09 +02:00
|
|
|
# Get all lists
|
|
|
|
GET http://localhost:8080/api/v1/lists
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Get one list
|
2018-09-04 19:54:15 +02:00
|
|
|
GET http://localhost:8080/api/v1/lists/13
|
2018-07-26 10:29:09 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Add a new list
|
|
|
|
PUT http://localhost:8080/api/v1/namespaces/1/lists
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-09-12 22:59:45 +02:00
|
|
|
# Add a new list
|
|
|
|
PUT http://localhost:8080/api/v1/lists/1
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{"text": "test2", "description": "Schinken"}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-07-26 10:29:09 +02:00
|
|
|
# Delete a list from a list
|
|
|
|
DELETE http://localhost:8080/api/v1/lists/28
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-08-30 18:52:12 +02:00
|
|
|
# Get all teams who have access to that list
|
2018-09-06 08:42:18 +02:00
|
|
|
GET http://localhost:8080/api/v1/lists/28/teams
|
2018-08-30 18:52:12 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Give a team access to that list
|
|
|
|
PUT http://localhost:8080/api/v1/lists/10/teams
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{"team_id":2, "right": 1}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Delete a team from a list
|
|
|
|
DELETE http://localhost:8080/api/v1/lists/10235/teams/1
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Delete a team from a list
|
|
|
|
DELETE http://localhost:8080/api/v1/lists/10235/teams/1
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-08-30 08:58:09 +02:00
|
|
|
# Get all users who have access to that list
|
2018-09-06 08:42:18 +02:00
|
|
|
GET http://localhost:8080/api/v1/lists/28/users
|
2018-08-30 08:58:09 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Give a user access to that list
|
2018-09-06 08:42:18 +02:00
|
|
|
PUT http://localhost:8080/api/v1/lists/28/users
|
2018-08-30 08:58:09 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
2018-09-06 08:42:18 +02:00
|
|
|
{"user_id":3, "right":1}
|
2018-08-30 08:58:09 +02:00
|
|
|
|
|
|
|
###
|
2018-08-30 18:52:12 +02:00
|
|
|
|
|
|
|
# Delete a user from a list
|
2018-09-06 08:42:18 +02:00
|
|
|
DELETE http://localhost:8080/api/v1/lists/28/users/3
|
2018-08-30 18:52:12 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|