forked from ayman-h226/Tp-E-Commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTp-E-Commerce.postman_collection.json
217 lines (217 loc) · 5.12 KB
/
Tp-E-Commerce.postman_collection.json
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
{
"info": {
"_postman_id": "3a5271e5-7960-4bac-8e02-e23fc48e10da",
"name": "Tp-E-Commerce",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "23376084"
},
"item": [
{
"name": "Ajouter Produit 1",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"titre\": \"Maillot Sénégal 🇸🇳\",\n \"description\": \"Maillot du Sénégal avec lequel la CAN 2021 a été gagné\",\n \"image\": \"https://imgs.search.brave.com/53tQs4VrBcTR1Ogdd7Yq5NV2x2IjNWoIXMrZiHsojkw/rs:fit:860:0:0/g:ce/aHR0cHM6Ly9hcGku/cHJvZC5wYW5pbmku/Y2xvdWQvcHViL21l/ZGlhL2NhdGFsb2cv/cHJvZHVjdC9yZXNp/emVkLzkwMC8zLzEv/MzE3MDAwZV8xLmpw/Zw\",\n \"prix\": \"80.0\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/produits/ajouter",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"produits",
"ajouter"
]
}
},
"response": []
},
{
"name": "Ajouter Produit 2",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"titre\": \"Maillot Burkina Faso 🇧🇫\",\n \"description\": \"Maillot avec lequel les étalons gagneront la CAN 2025\",\n \"image\": \"https://imgs.search.brave.com/R06cDYVxeE-q4C46dY7G-03m6fad-u6_PFr-kp2fpCE/rs:fit:860:0:0/g:ce/aHR0cHM6Ly93d3cu/bWFpbGxvdHNkZWZv/b3QubmV0L2ltYWdl/L2NhY2hlL2NhdGFs/b2cvaW1hZ2VzL21h/aWxsb3QtYnVya2lu/YS1mYXNvLWRvbWlj/aWxlLTIwMjEtMjAy/Mi0yMjh4MjI4Lmpw/Zw\",\n \"prix\": \"80.0\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/produits/ajouter",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"produits",
"ajouter"
]
}
},
"response": []
},
{
"name": "Ajouter Produit 3",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"titre\": \"Maillot Maroc 🇲🇦\",\n \"description\": \"Maillot avec lequel le Maroc a tout défoncé durant la coupe du monde 2022\",\n \"image\": \"https://imgs.search.brave.com/kdiCVDdVEAcm80o8ZKQRNzyyJdWjg9WLCJf8vDs40LM/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pbnRlcnNwb3J0/LmZyL2lzL2ltYWdl/L2ludGVyc3BvcnRm/ci83NjU4MDdfS0Uy/X1ExPyRwcm9kdWl0/X2wk.jpeg\",\n \"prix\": \"80.0\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/produits/ajouter",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"produits",
"ajouter"
]
}
},
"response": []
},
{
"name": "Ajouter Produit 4",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"titre\": \"Maillot France 🇫🇷\",\n \"description\": \"Nouveau maillot 2024 de l'équipe de France avec les 2 étoiles\",\n \"image\": \"https://imgs.search.brave.com/g8O68VRNXD7lI-hiqy7v-diBsdCp03SS8aGQ4plUUio/rs:fit:860:0:0/g:ce/aHR0cHM6Ly93d3cu/Zm9vdC5mci8xMjk0/ODgtcGR0XzM2MC9t/YWlsbG90LWVxdWlw/ZS1kZS1mcmFuY2Ut/ZXh0ZXJpZXVyLTIw/MjQuanBn\",\n \"prix\": \"80.0\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/produits/ajouter",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"produits",
"ajouter"
]
}
},
"response": []
},
{
"name": "Avoir tous les produits",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/produits",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"produits"
]
}
},
"response": []
},
{
"name": "Avoir un produit par son id",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:8080/api/produits/:id",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"produits",
":id"
],
"variable": [
{
"key": "id",
"value": "102"
}
]
}
},
"response": []
},
{
"name": "Avoir toutes les commandes",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8081/api/commandes",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"api",
"commandes"
]
}
},
"response": []
},
{
"name": "Avoir tous les paiements",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8082/api/paiements",
"protocol": "http",
"host": [
"localhost"
],
"port": "8082",
"path": [
"api",
"paiements"
]
}
},
"response": []
}
]
}