Skip to content

Commit 12c466b

Browse files
Merge pull request #1 from maitraysuthar/master
merged postman collection file.
2 parents 9cd757d + 0f73aaa commit 12c466b

File tree

2 files changed

+308
-0
lines changed

2 files changed

+308
-0
lines changed

postman-collection/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
{
2+
"info": {
3+
"_postman_id": "2dc87226-1700-456c-8c91-134be87d7283",
4+
"name": "REST API NodeJS",
5+
"description": "A boilerplate for REST API Development with Node.js and Expressjs",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7+
},
8+
"item": [
9+
{
10+
"name": "Auth",
11+
"item": [
12+
{
13+
"name": "Register",
14+
"request": {
15+
"method": "POST",
16+
"header": [
17+
{
18+
"key": "Content-Type",
19+
"name": "Content-Type",
20+
"value": "application/x-www-form-urlencoded",
21+
"type": "text"
22+
}
23+
],
24+
"body": {
25+
"mode": "urlencoded",
26+
"urlencoded": [
27+
{
28+
"key": "firstName",
29+
"value": "test",
30+
"type": "text"
31+
},
32+
{
33+
"key": "lastName",
34+
"value": "testing",
35+
"type": "text"
36+
},
37+
{
38+
"key": "password",
39+
"value": "Test@123",
40+
"type": "text"
41+
},
42+
{
43+
"key": "email",
44+
"value": "[email protected]",
45+
"type": "text"
46+
}
47+
]
48+
},
49+
"url": {
50+
"raw": "http://localhost:3000/api/auth/register",
51+
"protocol": "http",
52+
"host": [
53+
"localhost"
54+
],
55+
"port": "3000",
56+
"path": [
57+
"api",
58+
"auth",
59+
"register"
60+
],
61+
"query": [
62+
{
63+
"key": "",
64+
"value": ""
65+
}
66+
]
67+
}
68+
},
69+
"response": []
70+
},
71+
{
72+
"name": "Login",
73+
"request": {
74+
"method": "POST",
75+
"header": [
76+
{
77+
"key": "Content-Type",
78+
"name": "Content-Type",
79+
"value": "application/x-www-form-urlencoded",
80+
"type": "text"
81+
}
82+
],
83+
"body": {
84+
"mode": "urlencoded",
85+
"urlencoded": [
86+
{
87+
"key": "email",
88+
"value": "[email protected]",
89+
"type": "text"
90+
},
91+
{
92+
"key": "password",
93+
"value": "Test@123",
94+
"type": "text"
95+
}
96+
]
97+
},
98+
"url": {
99+
"raw": "http://localhost:3000/api/auth/login",
100+
"protocol": "http",
101+
"host": [
102+
"localhost"
103+
],
104+
"port": "3000",
105+
"path": [
106+
"api",
107+
"auth",
108+
"login"
109+
]
110+
}
111+
},
112+
"response": []
113+
}
114+
]
115+
},
116+
{
117+
"name": "Book",
118+
"item": [
119+
{
120+
"name": "Book Store",
121+
"request": {
122+
"method": "POST",
123+
"header": [
124+
{
125+
"key": "Content-Type",
126+
"name": "Content-Type",
127+
"value": "application/x-www-form-urlencoded",
128+
"type": "text"
129+
},
130+
{
131+
"key": "Authorization",
132+
"value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZDQwMzc0ODllY2I2ZDUyNjAzZDQ1ZjMiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0aW5nIiwiZW1haWwiOiJ0ZXN0QHRlc3RpbmcuY29tIiwiaWF0IjoxNTY0NzI1NTMxLCJleHAiOjE1NjQ3MzI3MzF9.YEGMugzT_ijNgAeBYe4O6hZoidkG_hX9x-1QjQKuJYI",
133+
"type": "text"
134+
}
135+
],
136+
"body": {
137+
"mode": "urlencoded",
138+
"urlencoded": [
139+
{
140+
"key": "title",
141+
"value": "testing book ",
142+
"type": "text"
143+
},
144+
{
145+
"key": "description",
146+
"value": "testing book desc",
147+
"type": "text"
148+
},
149+
{
150+
"key": "isbn",
151+
"value": "3214htrff4",
152+
"type": "text"
153+
}
154+
]
155+
},
156+
"url": {
157+
"raw": "http://localhost:3000/api/book",
158+
"protocol": "http",
159+
"host": [
160+
"localhost"
161+
],
162+
"port": "3000",
163+
"path": [
164+
"api",
165+
"book"
166+
]
167+
}
168+
},
169+
"response": []
170+
},
171+
{
172+
"name": "Book List",
173+
"request": {
174+
"method": "GET",
175+
"header": [
176+
{
177+
"key": "Authorization",
178+
"value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZDQwMzc0ODllY2I2ZDUyNjAzZDQ1ZjMiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0aW5nIiwiZW1haWwiOiJ0ZXN0QHRlc3RpbmcuY29tIiwiaWF0IjoxNTY0NzQ0NzQ4LCJleHAiOjE1NjQ3NTE5NDh9.gE2DjhWgNmPFyy7K21MEC4bIm3gbbDicdE_eorFIZ0o",
179+
"type": "text"
180+
}
181+
],
182+
"url": {
183+
"raw": "http://localhost:3000/api/book",
184+
"protocol": "http",
185+
"host": [
186+
"localhost"
187+
],
188+
"port": "3000",
189+
"path": [
190+
"api",
191+
"book"
192+
]
193+
}
194+
},
195+
"response": []
196+
},
197+
{
198+
"name": "Book Detail",
199+
"request": {
200+
"method": "GET",
201+
"header": [
202+
{
203+
"key": "Authorization",
204+
"value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZDQwMzc0ODllY2I2ZDUyNjAzZDQ1ZjMiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0aW5nIiwiZW1haWwiOiJ0ZXN0QHRlc3RpbmcuY29tIiwiaWF0IjoxNTY0NzQ0NzQ4LCJleHAiOjE1NjQ3NTE5NDh9.gE2DjhWgNmPFyy7K21MEC4bIm3gbbDicdE_eorFIZ0o",
205+
"type": "text"
206+
}
207+
],
208+
"url": {
209+
"raw": "http://localhost:3000/api/book/5d43d14a246036209713e667",
210+
"protocol": "http",
211+
"host": [
212+
"localhost"
213+
],
214+
"port": "3000",
215+
"path": [
216+
"api",
217+
"book",
218+
"5d43d14a246036209713e667"
219+
]
220+
}
221+
},
222+
"response": []
223+
},
224+
{
225+
"name": "Book Update",
226+
"request": {
227+
"method": "PUT",
228+
"header": [
229+
{
230+
"key": "Authorization",
231+
"value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZDQwMzc0ODllY2I2ZDUyNjAzZDQ1ZjMiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0aW5nIiwiZW1haWwiOiJ0ZXN0QHRlc3RpbmcuY29tIiwiaWF0IjoxNTY0OTkzMDgwLCJleHAiOjE1NjUwMDAyODB9.Lm0-ociCVNxhL7rnzeCO9i1mmJx1bZRQEJoPCNaHkIA",
232+
"type": "text"
233+
},
234+
{
235+
"key": "Content-Type",
236+
"name": "Content-Type",
237+
"value": "application/x-www-form-urlencoded",
238+
"type": "text"
239+
}
240+
],
241+
"body": {
242+
"mode": "urlencoded",
243+
"urlencoded": [
244+
{
245+
"key": "title",
246+
"value": "testing book 123 456",
247+
"type": "text"
248+
},
249+
{
250+
"key": "description",
251+
"value": "testing book desc 123 456",
252+
"type": "text"
253+
},
254+
{
255+
"key": "isbn",
256+
"value": "3214htrff445",
257+
"type": "text"
258+
}
259+
]
260+
},
261+
"url": {
262+
"raw": "http://localhost:3000/api/book/5d43d753cdbdd1264291806c",
263+
"protocol": "http",
264+
"host": [
265+
"localhost"
266+
],
267+
"port": "3000",
268+
"path": [
269+
"api",
270+
"book",
271+
"5d43d753cdbdd1264291806c"
272+
]
273+
}
274+
},
275+
"response": []
276+
},
277+
{
278+
"name": "Book Delete",
279+
"request": {
280+
"method": "DELETE",
281+
"header": [
282+
{
283+
"key": "Authorization",
284+
"value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZDQwMzc0ODllY2I2ZDUyNjAzZDQ1ZjMiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0aW5nIiwiZW1haWwiOiJ0ZXN0QHRlc3RpbmcuY29tIiwiaWF0IjoxNTY1MDAxNzQ3LCJleHAiOjE1NjUwMDg5NDd9.NFq5JjFI4nEU7_1oAt2Zj91q0vRSdd3d5to-T_7aRJ4",
285+
"type": "text"
286+
}
287+
],
288+
"url": {
289+
"raw": "http://localhost:3000/api/book/5d43d753cdbdd1264291806c",
290+
"protocol": "http",
291+
"host": [
292+
"localhost"
293+
],
294+
"port": "3000",
295+
"path": [
296+
"api",
297+
"book",
298+
"5d43d753cdbdd1264291806c"
299+
]
300+
}
301+
},
302+
"response": []
303+
}
304+
]
305+
}
306+
]
307+
}

0 commit comments

Comments
 (0)