2018-07-26 10:29:09 +02:00
|
|
|
# Get all lists
|
2018-12-04 11:16:42 +01:00
|
|
|
GET http://localhost:8080/api/v1/namespaces/1/lists
|
2018-07-26 10:29:09 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Get one list
|
2018-12-01 00:26:56 +01:00
|
|
|
GET http://localhost:8080/api/v1/lists/15
|
2018-07-26 10:29:09 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
# Add a new list
|
2018-12-01 00:26:56 +01:00
|
|
|
PUT http://localhost:8080/api/v1/namespaces/6/lists
|
2018-07-26 10:29:09 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
2018-11-17 00:17:37 +01:00
|
|
|
{
|
2018-12-01 00:26:56 +01:00
|
|
|
"title": "sffffc me only"
|
2018-11-17 00:17:37 +01:00
|
|
|
}
|
2018-07-26 10:29:09 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-12-01 00:26:56 +01:00
|
|
|
# Add a new item
|
2018-12-01 03:00:57 +01:00
|
|
|
PUT http://localhost:8080/api/v1/lists/15
|
2018-09-12 22:59:45 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
2018-12-01 03:00:57 +01:00
|
|
|
{
|
|
|
|
"text": "this is a subtask 2",
|
|
|
|
"description": "Schinken",
|
|
|
|
"parentTaskID": 34
|
|
|
|
}
|
2018-09-12 22:59:45 +02:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-12-01 00:26:56 +01:00
|
|
|
# Delete a task from a list
|
|
|
|
DELETE http://localhost:8080/api/v1/lists/14
|
2018-07-26 10:29:09 +02:00
|
|
|
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
|
2018-09-19 08:08:41 +02:00
|
|
|
PUT http://localhost:8080/api/v1/lists/1/teams
|
2018-08-30 18:52:12 +02:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{"team_id":2, "right": 1}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-09-19 08:08:41 +02:00
|
|
|
# Update a teams access to that list
|
|
|
|
POST http://localhost:8080/api/v1/lists/1/teams/2
|
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{"right": 0}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-08-30 18:52:12 +02:00
|
|
|
# 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-19 07:54:47 +02:00
|
|
|
PUT http://localhost:8080/api/v1/lists/30/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
|
|
|
|
2018-09-19 07:54:47 +02:00
|
|
|
# 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}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
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}}
|
|
|
|
|
2018-11-02 17:59:49 +01:00
|
|
|
###
|
|
|
|
|
|
|
|
# Get all pending tasks
|
2018-12-02 19:31:03 +01:00
|
|
|
GET http://localhost:8080/api/v1/tasks/all
|
2018-11-02 17:59:49 +01:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
2018-11-03 16:05:45 +01:00
|
|
|
###
|
|
|
|
|
2018-12-02 01:49:30 +01:00
|
|
|
# Get all pending tasks with priorities
|
2018-12-02 19:31:03 +01:00
|
|
|
GET http://localhost:8080/api/v1/tasks/all/desc
|
2018-12-02 01:49:30 +01:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2018-11-03 16:05:45 +01:00
|
|
|
# Get all pending tasks in caldav
|
|
|
|
GET http://localhost:8080/api/v1/tasks/caldav
|
|
|
|
#Authorization: Bearer {{auth_token}}
|
|
|
|
|
2018-11-26 21:24:00 +01:00
|
|
|
###
|
|
|
|
|
|
|
|
# Update a task
|
2018-12-02 19:31:03 +01:00
|
|
|
POST http://localhost:8080/api/v1/tasks/32
|
2018-11-26 21:24:00 +01:00
|
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{"done":true}
|
|
|
|
|
2018-08-30 18:52:12 +02:00
|
|
|
###
|