-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
47 lines (35 loc) · 1.02 KB
/
test.sh
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
47
curl \
--header "Content-type: application/json" \
--request POST \
--data '{"state": "1", "text": "Task 1", "due_date":"2018-09-20T22:59:00"}' \
http://localhost:8000/api/task/
curl \
--header "Content-type: application/json" \
--request GET \
http://localhost:8000/api/task/
curl \
--header "Content-type: application/json" \
--request PUT \
--data '{"state": "2", "text": "Task 1", "due_date":"2018-09-20T22:59:00"}' \
http://localhost:8000/api/task/1/
curl \
--header "Content-type: application/json" \
--request GET \
http://localhost:8000/api/task/
curl \
--header "Content-type: application/json" \
--request POST \
--data '{"state": "1", "text": "Task 2", "due_date":"2018-09-20T22:59:00"}' \
http://localhost:8000/api/task/
curl \
--header "Content-type: application/json" \
--request GET \
http://localhost:8000/api/task/
curl \
--header "Content-type: application/json" \
--request DELETE \
http://localhost:8000/api/task/1/
curl \
--header "Content-type: application/json" \
--request GET \
http://localhost:8000/api/task/