api/REST-Tests/lists.http

178 lines
3.3 KiB
Plaintext
Raw Normal View History

# Get all lists
GET http://localhost:8080/api/v1/namespaces/35/lists
Authorization: Bearer {{auth_token}}
###
# Get one list
GET http://localhost:8080/api/v1/lists/3
Authorization: Bearer {{auth_token}}
###
# Add a new list
PUT http://localhost:8080/api/v1/namespaces/35/lists
Authorization: Bearer {{auth_token}}
Content-Type: application/json
2018-11-16 23:17:37 +00:00
{
2018-12-29 14:29:50 +00:00
"title": "test"
2018-11-16 23:17:37 +00:00
}
###
2018-11-30 23:26:56 +00:00
# Add a new item
2018-12-29 14:29:50 +00:00
PUT http://localhost:8080/api/v1/lists/1
2018-09-12 20:59:45 +00:00
Authorization: Bearer {{auth_token}}
Content-Type: application/json
2018-12-01 02:00:57 +00:00
{
2018-12-29 14:29:50 +00:00
"text": "Task",
"description": "Schinken"
2018-12-01 02:00:57 +00:00
}
2018-09-12 20:59:45 +00:00
###
2018-11-30 23:26:56 +00:00
# Delete a task from a list
DELETE http://localhost:8080/api/v1/lists/14
Authorization: Bearer {{auth_token}}
###
# Get all teams who have access to that list
2018-09-06 06:42:18 +00:00
GET http://localhost:8080/api/v1/lists/28/teams
Authorization: Bearer {{auth_token}}
###
# Give a team access to that list
PUT http://localhost:8080/api/v1/lists/1/teams
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{"team_id":2, "right": 1}
###
# 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}
###
# 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}}
###
# Get all users who have access to that list
2018-09-06 06:42:18 +00:00
GET http://localhost:8080/api/v1/lists/28/users
Authorization: Bearer {{auth_token}}
###
# Give a user access to that list
PUT http://localhost:8080/api/v1/lists/3/users
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{"userID":"user4", "right":1}
###
# 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
2018-09-06 06:42:18 +00:00
DELETE http://localhost:8080/api/v1/lists/28/users/3
Authorization: Bearer {{auth_token}}
###
# Get all pending tasks
2018-12-02 18:31:03 +00:00
GET http://localhost:8080/api/v1/tasks/all
Authorization: Bearer {{auth_token}}
2018-11-03 15:05:45 +00:00
###
2018-12-02 00:49:30 +00:00
# Get all pending tasks with priorities
GET http://localhost:8080/api/v1/tasks/all?sort=priorityasc
2018-12-02 00:49:30 +00:00
Authorization: Bearer {{auth_token}}
###
2018-12-22 18:06:14 +00:00
# Get all pending tasks in a range
GET http://localhost:8080/api/v1/tasks/all/dueadateasc/1546784000/1548784000
Authorization: Bearer {{auth_token}}
###
2018-11-03 15:05:45 +00:00
# Get all pending tasks in caldav
GET http://localhost:8080/api/v1/tasks/caldav
#Authorization: Bearer {{auth_token}}
2018-11-26 20:24:00 +00:00
###
# Update a task
2019-01-08 19:13:07 +00:00
POST http://localhost:8080/api/v1/tasks/3565
2018-11-26 20:24:00 +00:00
Authorization: Bearer {{auth_token}}
Content-Type: application/json
2019-01-08 19:13:07 +00:00
{
"priority": 0
2019-01-08 19:13:07 +00:00
}
2018-11-26 20:24:00 +00:00
2018-12-28 21:49:46 +00:00
###
# Bulk update multiple tasks at once
POST http://localhost:8080/api/v1/tasks/bulk
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{
"task_ids": [3518,3519,3521],
"text":"bulkupdated"
}
###
2019-01-08 19:13:07 +00:00
# Get all assignees
GET http://localhost:8080/api/v1/tasks/3565/assignees
Authorization: Bearer {{auth_token}}
###
# Add a bunch of assignees
PUT http://localhost:8080/api/v1/tasks/3565/assignees/bulk
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{
"assignees": [
{"id": 17}
]
}
###
# Get all users who have access to a list
GET http://localhost:8080/api/v1/lists/3/users
Authorization: Bearer {{auth_token}}
###