-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.http
More file actions
129 lines (91 loc) · 2.9 KB
/
test.http
File metadata and controls
129 lines (91 loc) · 2.9 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
### service indisponible
GET http://localhost:5050/404
############################## LISTS #############################
### récupération de toutes les listes
GET http://localhost:5050/lists
### récupération d'une liste
GET http://localhost:5050/lists/1
### création d'une liste
POST http://localhost:5050/lists
Content-Type: application/x-www-form-urlencoded
name=liste test post
&position=1
### modification d'une liste
PATCH http://localhost:5050/lists/1
Content-Type: application/x-www-form-urlencoded
name=liste test patch
&position=1
### création d'une liste via PUT
PUT http://localhost:5050/lists
Content-Type: application/x-www-form-urlencoded
name=liste test put 3
&position=2
### modification d'une liste via PUT
PUT http://localhost:5050/lists/2
Content-Type: application/x-www-form-urlencoded
name=liste test put 1
&position=1
### suppression d'une liste
DELETE http://localhost:5050/lists/5
############################## CARDS #############################
### récupération de toutes les cartes d'une liste
GET http://localhost:5050/lists/9/cards
### récupération d'une carte
GET http://localhost:5050/cards/4
### création d'une carte
POST http://localhost:5050/cards
Content-Type: application/x-www-form-urlencoded
content=carte test post
&color=#f0f
&list_id=1
### modification d'une carte
PATCH http://localhost:5050/cards/1
Content-Type: application/x-www-form-urlencoded
content=carte test patch
&color=#f0f
&position=1
### création d'une carte via PUT
PUT http://localhost:5050/cards
Content-Type: application/x-www-form-urlencoded
content=carte test put 3
&color=#f0f
&list_id=1
### modification d'une carte via PUT
PUT http://localhost:5050/cards/2
Content-Type: application/x-www-form-urlencoded
content=carte test put 1
&color=#f0f
&position=1
### suppression d'une carte
DELETE http://localhost:5050/cards/5
############################## TAGS #############################
### récupération de tous les tagss
GET http://localhost:5050/tags
### création d'un tags
POST http://localhost:5050/tags
Content-Type: application/x-www-form-urlencoded
name=urgentissime
&color=#f0f
### modification d'un tags
PATCH http://localhost:5050/tags/1
Content-Type: application/x-www-form-urlencoded
name=URGENT
&color=#F0F
### création d'un tags via PUT
PUT http://localhost:5050/tags
Content-Type: application/x-www-form-urlencoded
name=tags put 3
&color=#f0f
### modification d'un tags via PUT
PUT http://localhost:5050/tags/2
Content-Type: application/x-www-form-urlencoded
name=tags put 1
&color=#f0f
### suppression d'un tag
DELETE http://localhost:5050/tags/2
### associer un tag à une carte
POST http://localhost:5050/cards/2/tags
Content-Type: application/x-www-form-urlencoded
tag_id=1
### dissocier un tag d'une carte
DELETE http://localhost:5050/cards/2/tags/1