-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPI.txt
46 lines (39 loc) · 1.31 KB
/
API.txt
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
https://task-management-app-back.herokuapp.com/tasks
-- Получить список задач ---
GET: https://task-management-app-back.herokuapp.com/tasks
Параметры:
- status
- search
Пример:
https://task-management-app-back.herokuapp.com/tasks?status=OPEN
https://task-management-app-back.herokuapp.com/tasks?status=DONE
https://task-management-app-back.herokuapp.com/tasks?search=bath
https://task-management-app-back.herokuapp.com/tasks?search=bath?status=OPEN
Ответ:
массив объектов Task
Структура Task
title - string
description - string
status - string enum (OPEN, IN_PROGRESS, DONE)
_id - string
createdAt - string date in ISO format
updatedAt - string date in ISO format
Пример:
[
{
"title": "Cook some food",
"description": "Pork with mushrooms",
"status": "OPEN",
"_id": "X2HZ5DwTlRxLu1MF",
"createdAt": "2021-10-28T08:45:38.826Z",
"updatedAt": "2021-10-28T08:45:38.826Z"
},
{
"title": "Clean the bath",
"description": "Floor, Bath, Sink",
"status": "OPEN",
"_id": "leHUJAqwwIeN4qAR",
"createdAt": "2021-10-28T08:45:41.792Z",
"updatedAt": "2021-10-28T08:45:41.792Z"
}
]