Skip to content

Commit e20b81d

Browse files
author
DevSazal
committed
MySQL File+ Postman_CollectionAPI file
1 parent 69d8b32 commit e20b81d

File tree

2 files changed

+599
-0
lines changed

2 files changed

+599
-0
lines changed
Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
{
2+
"info": {
3+
"_postman_id": "23a6f94d-a6e2-4ebb-b382-153abf00932a",
4+
"name": "Tweet API",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "http://localhost:8000/api/login/",
10+
"request": {
11+
"method": "POST",
12+
"header": [],
13+
"body": {
14+
"mode": "formdata",
15+
"formdata": [
16+
{
17+
"key": "login",
18+
"value": "maliha_mou",
19+
"type": "text"
20+
},
21+
{
22+
"key": "password",
23+
"value": "123456",
24+
"type": "text"
25+
}
26+
]
27+
},
28+
"url": {
29+
"raw": "http://localhost:8000/api/login/",
30+
"protocol": "http",
31+
"host": [
32+
"localhost"
33+
],
34+
"port": "8000",
35+
"path": [
36+
"api",
37+
"login",
38+
""
39+
]
40+
},
41+
"description": "login"
42+
},
43+
"response": []
44+
},
45+
{
46+
"name": "http://localhost:8000/api/tweet-store",
47+
"request": {
48+
"method": "POST",
49+
"header": [
50+
{
51+
"key": "Authorization",
52+
"value": "Bearer 4|6QYncyZJBWXBbWVykaTztZy1H6WIDzQzFI1SkRSq",
53+
"type": "text"
54+
}
55+
],
56+
"body": {
57+
"mode": "formdata",
58+
"formdata": [
59+
{
60+
"key": "message",
61+
"value": "ok",
62+
"type": "text"
63+
},
64+
{
65+
"key": "user_id",
66+
"value": "1",
67+
"type": "text"
68+
}
69+
]
70+
},
71+
"url": {
72+
"raw": "http://localhost:8000/api/tweet-store",
73+
"protocol": "http",
74+
"host": [
75+
"localhost"
76+
],
77+
"port": "8000",
78+
"path": [
79+
"api",
80+
"tweet-store"
81+
]
82+
}
83+
},
84+
"response": []
85+
},
86+
{
87+
"name": "http://localhost:8000/api/tweet",
88+
"request": {
89+
"method": "GET",
90+
"header": [
91+
{
92+
"key": "Authorization",
93+
"value": "Bearer 4|6QYncyZJBWXBbWVykaTztZy1H6WIDzQzFI1SkRSq",
94+
"type": "text"
95+
}
96+
],
97+
"url": {
98+
"raw": "http://localhost:8000/api/tweet",
99+
"protocol": "http",
100+
"host": [
101+
"localhost"
102+
],
103+
"port": "8000",
104+
"path": [
105+
"api",
106+
"tweet"
107+
]
108+
}
109+
},
110+
"response": []
111+
},
112+
{
113+
"name": "http://localhost:8000/api/tweet/2",
114+
"request": {
115+
"method": "GET",
116+
"header": [
117+
{
118+
"key": "Authorization",
119+
"value": "Bearer 4|6QYncyZJBWXBbWVykaTztZy1H6WIDzQzFI1SkRSq",
120+
"type": "text"
121+
}
122+
],
123+
"url": {
124+
"raw": "http://localhost:8000/api/tweet/2",
125+
"protocol": "http",
126+
"host": [
127+
"localhost"
128+
],
129+
"port": "8000",
130+
"path": [
131+
"api",
132+
"tweet",
133+
"2"
134+
]
135+
},
136+
"description": "tweet listed by id"
137+
},
138+
"response": []
139+
},
140+
{
141+
"name": "http://localhost:8000/api/u/",
142+
"request": {
143+
"method": "GET",
144+
"header": [
145+
{
146+
"key": "Authorization",
147+
"value": "Bearer 4|6QYncyZJBWXBbWVykaTztZy1H6WIDzQzFI1SkRSq",
148+
"type": "text"
149+
}
150+
],
151+
"url": {
152+
"raw": "http://localhost:8000/api/",
153+
"protocol": "http",
154+
"host": [
155+
"localhost"
156+
],
157+
"port": "8000",
158+
"path": [
159+
"api",
160+
""
161+
]
162+
},
163+
"description": "all tweets"
164+
},
165+
"response": []
166+
},
167+
{
168+
"name": "http://localhost:8000/api/u/maliha_mou",
169+
"request": {
170+
"method": "GET",
171+
"header": [
172+
{
173+
"key": "Authorization",
174+
"value": "Bearer 4|6QYncyZJBWXBbWVykaTztZy1H6WIDzQzFI1SkRSq",
175+
"type": "text"
176+
}
177+
],
178+
"url": {
179+
"raw": "http://localhost:8000/api/maliha_mou",
180+
"protocol": "http",
181+
"host": [
182+
"localhost"
183+
],
184+
"port": "8000",
185+
"path": [
186+
"api",
187+
"maliha_mou"
188+
]
189+
},
190+
"description": "tweet listed by username as profile"
191+
},
192+
"response": []
193+
},
194+
{
195+
"name": "http://localhost:8000/api/tweet-update/3?message=one day I will be there %23win",
196+
"request": {
197+
"method": "PUT",
198+
"header": [
199+
{
200+
"key": "Authorization",
201+
"value": "Bearer 4|6QYncyZJBWXBbWVykaTztZy1H6WIDzQzFI1SkRSq",
202+
"type": "text"
203+
}
204+
],
205+
"url": {
206+
"raw": "http://localhost:8000/api/tweet-update/3?message=one day I will be there %23win",
207+
"protocol": "http",
208+
"host": [
209+
"localhost"
210+
],
211+
"port": "8000",
212+
"path": [
213+
"api",
214+
"tweet-update",
215+
"3"
216+
],
217+
"query": [
218+
{
219+
"key": "message",
220+
"value": "one day I will be there #win"
221+
}
222+
]
223+
},
224+
"description": "tweet message update with id"
225+
},
226+
"response": []
227+
},
228+
{
229+
"name": "http://localhost:8000/api/tweet-delete/5",
230+
"request": {
231+
"method": "DELETE",
232+
"header": [
233+
{
234+
"key": "Authorization",
235+
"value": "Bearer 4|6QYncyZJBWXBbWVykaTztZy1H6WIDzQzFI1SkRSq",
236+
"type": "text"
237+
}
238+
],
239+
"url": {
240+
"raw": "http://localhost:8000/api/tweet-delete/5",
241+
"protocol": "http",
242+
"host": [
243+
"localhost"
244+
],
245+
"port": "8000",
246+
"path": [
247+
"api",
248+
"tweet-delete",
249+
"5"
250+
]
251+
},
252+
"description": "tweet soft delete by id"
253+
},
254+
"response": []
255+
},
256+
{
257+
"name": "http://localhost:8000/api/tweet-trashed",
258+
"request": {
259+
"method": "GET",
260+
"header": [
261+
{
262+
"key": "Authorization",
263+
"value": "Bearer 5|hJxVJ9OGSQ3UxGhBbQOcgp5pZQPClpnRw5DFIrHr",
264+
"type": "text"
265+
}
266+
],
267+
"url": {
268+
"raw": "http://localhost:8000/api/tweet-trashed",
269+
"protocol": "http",
270+
"host": [
271+
"localhost"
272+
],
273+
"port": "8000",
274+
"path": [
275+
"api",
276+
"tweet-trashed"
277+
]
278+
},
279+
"description": "only Trashed Tweets (list)"
280+
},
281+
"response": []
282+
},
283+
{
284+
"name": "http://localhost:8000/api/tweet-restore/5",
285+
"request": {
286+
"method": "GET",
287+
"header": [
288+
{
289+
"key": "Authorization",
290+
"value": "Bearer 5|hJxVJ9OGSQ3UxGhBbQOcgp5pZQPClpnRw5DFIrHr",
291+
"type": "text"
292+
}
293+
],
294+
"url": {
295+
"raw": "http://localhost:8000/api/tweet-restore/5",
296+
"protocol": "http",
297+
"host": [
298+
"localhost"
299+
],
300+
"port": "8000",
301+
"path": [
302+
"api",
303+
"tweet-restore",
304+
"5"
305+
]
306+
},
307+
"description": "Tweet restore by id"
308+
},
309+
"response": []
310+
}
311+
],
312+
"auth": {
313+
"type": "bearer",
314+
"bearer": [
315+
{
316+
"key": "token",
317+
"value": "4|6QYncyZJBWXBbWVykaTztZy1H6WIDzQzFI1SkRSq",
318+
"type": "string"
319+
}
320+
]
321+
},
322+
"event": [
323+
{
324+
"listen": "prerequest",
325+
"script": {
326+
"id": "f38d4402-1ff3-4e75-89fe-04e60cc196ae",
327+
"type": "text/javascript",
328+
"exec": [
329+
""
330+
]
331+
}
332+
},
333+
{
334+
"listen": "test",
335+
"script": {
336+
"id": "b9ea8063-cd3b-4292-9aac-13d267c4cd23",
337+
"type": "text/javascript",
338+
"exec": [
339+
""
340+
]
341+
}
342+
}
343+
],
344+
"protocolProfileBehavior": {}
345+
}

0 commit comments

Comments
 (0)