Archive
For the purpose of this test, we have created a project with two task lists:
Response: HTTP 200, application/json (Hide)
GET /projects/1/task-lists
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
[
{
"id": 1,
"class": "TaskList",
"url_path": "\/projects\/1\/task-lists\/1",
"name": "Task List #1",
"is_trashed": false,
"trashed_on": null,
"trashed_by_id": 0,
"completed_on": null,
"completed_by_id": null,
"is_completed": false,
"project_id": 1,
"created_on": 1430164257,
"created_by_id": 1,
"updated_on": 1430164257,
"updated_by_id": 1,
"start_on": null,
"due_on": null,
"position": 1,
"open_tasks": 0,
"completed_tasks": 0
},
{
"id": 2,
"class": "TaskList",
"url_path": "\/projects\/1\/task-lists\/2",
"name": "Task List #2",
"is_trashed": false,
"trashed_on": null,
"trashed_by_id": 0,
"completed_on": null,
"completed_by_id": null,
"is_completed": false,
"project_id": 1,
"created_on": 1430164258,
"created_by_id": 1,
"updated_on": 1430164258,
"updated_by_id": 1,
"start_on": null,
"due_on": null,
"position": 2,
"open_tasks": 0,
"completed_tasks": 0
}
]Tasks archive is empty:
When we complete the task lists:
Response: HTTP 200, application/json (Hide)
PUT /complete/task-list/1
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{
"single": {
"id": 1,
"class": "TaskList",
"url_path": "\/projects\/1\/task-lists\/1",
"name": "Task List #1",
"is_trashed": false,
"trashed_on": null,
"trashed_by_id": 0,
"completed_on": 1430164258,
"completed_by_id": 1,
"is_completed": true,
"project_id": 1,
"created_on": 1430164257,
"created_by_id": 1,
"updated_on": 1430164258,
"updated_by_id": 1,
"start_on": null,
"due_on": null,
"position": 1,
"open_tasks": 0,
"completed_tasks": 0
}
}Sleeping for 1 seconds
Response: HTTP 200, application/json (Hide)
PUT /complete/task-list/2
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{
"single": {
"id": 2,
"class": "TaskList",
"url_path": "\/projects\/1\/task-lists\/2",
"name": "Task List #2",
"is_trashed": false,
"trashed_on": null,
"trashed_by_id": 0,
"completed_on": 1430164259,
"completed_by_id": 1,
"is_completed": true,
"project_id": 1,
"created_on": 1430164258,
"created_by_id": 1,
"updated_on": 1430164259,
"updated_by_id": 1,
"start_on": null,
"due_on": null,
"position": 2,
"open_tasks": 0,
"completed_tasks": 0
}
}Active task lists listing will be empty:
but we'll have these task lists available in the archive (recently completed are on the top):
Response: HTTP 200, application/json (Hide)
GET /projects/1/task-lists/archive
Query Parameters:
1 2 3
{
"page": 1
}Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
[
{
"id": 2,
"class": "TaskList",
"url_path": "\/projects\/1\/task-lists\/2",
"name": "Task List #2",
"is_trashed": false,
"trashed_on": null,
"trashed_by_id": 0,
"completed_on": 1430164259,
"completed_by_id": 1,
"is_completed": true,
"project_id": 1,
"created_on": 1430164258,
"created_by_id": 1,
"updated_on": 1430164259,
"updated_by_id": 1,
"start_on": null,
"due_on": null,
"position": 2,
"open_tasks": 0,
"completed_tasks": 0
},
{
"id": 1,
"class": "TaskList",
"url_path": "\/projects\/1\/task-lists\/1",
"name": "Task List #1",
"is_trashed": false,
"trashed_on": null,
"trashed_by_id": 0,
"completed_on": 1430164258,
"completed_by_id": 1,
"is_completed": true,
"project_id": 1,
"created_on": 1430164257,
"created_by_id": 1,
"updated_on": 1430164258,
"updated_by_id": 1,
"start_on": null,
"due_on": null,
"position": 1,
"open_tasks": 0,
"completed_tasks": 0
}
]