Skip to content

Commit f1297fa

Browse files
committed
add postman collection
1 parent 7257dad commit f1297fa

File tree

1 file changed

+173
-0
lines changed

1 file changed

+173
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
{
2+
"info": {
3+
"_postman_id": "d5f1125b-7ccb-4324-b7b7-0bf56a45ef7a",
4+
"name": "social-nw-full-stack",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6+
"_exporter_id": "11272955"
7+
},
8+
"item": [
9+
{
10+
"name": "/auth/signup",
11+
"event": [
12+
{
13+
"listen": "test",
14+
"script": {
15+
"exec": [
16+
""
17+
],
18+
"type": "text/javascript"
19+
}
20+
}
21+
],
22+
"request": {
23+
"method": "POST",
24+
"header": [
25+
{
26+
"key": "accept",
27+
"value": "application/json"
28+
},
29+
{
30+
"key": "Content-Type",
31+
"value": "application/json"
32+
}
33+
],
34+
"body": {
35+
"mode": "raw",
36+
"raw": "{\r\n \"firstName\": \"AshuAdmin\",\r\n \"lastName\": \"Sahoo\",\r\n \"email\": \"ashu@xyz\",\r\n \"password\": \"password@01\"\r\n}"
37+
},
38+
"url": {
39+
"raw": "http://localhost:8080/api/v1/auth/signup",
40+
"protocol": "http",
41+
"host": [
42+
"localhost"
43+
],
44+
"port": "8080",
45+
"path": [
46+
"api",
47+
"v1",
48+
"auth",
49+
"signup"
50+
]
51+
}
52+
},
53+
"response": []
54+
},
55+
{
56+
"name": "/auth/signin",
57+
"event": [
58+
{
59+
"listen": "test",
60+
"script": {
61+
"exec": [
62+
"const dataFromResponse = pm.response.json();\r",
63+
"pm.environment.set(\"token\", dataFromResponse.accessToken);"
64+
],
65+
"type": "text/javascript"
66+
}
67+
}
68+
],
69+
"request": {
70+
"method": "POST",
71+
"header": [],
72+
"body": {
73+
"mode": "raw",
74+
"raw": "{\r\n \"email\": \"ashu@xyz\",\r\n \"password\": \"password@01\"\r\n}",
75+
"options": {
76+
"raw": {
77+
"language": "json"
78+
}
79+
}
80+
},
81+
"url": {
82+
"raw": "http://localhost:8080/api/v1/auth/signin",
83+
"protocol": "http",
84+
"host": [
85+
"localhost"
86+
],
87+
"port": "8080",
88+
"path": [
89+
"api",
90+
"v1",
91+
"auth",
92+
"signin"
93+
]
94+
}
95+
},
96+
"response": []
97+
},
98+
{
99+
"name": "/hello/user",
100+
"request": {
101+
"auth": {
102+
"type": "bearer",
103+
"bearer": [
104+
{
105+
"key": "token",
106+
"value": "{{token}}",
107+
"type": "string"
108+
}
109+
]
110+
},
111+
"method": "GET",
112+
"header": [
113+
{
114+
"key": "accept",
115+
"value": "application/json"
116+
}
117+
],
118+
"url": {
119+
"raw": "http://localhost:8080/api/v1/resources/user",
120+
"protocol": "http",
121+
"host": [
122+
"localhost"
123+
],
124+
"port": "8080",
125+
"path": [
126+
"api",
127+
"v1",
128+
"resources",
129+
"user"
130+
]
131+
}
132+
},
133+
"response": []
134+
},
135+
{
136+
"name": "/hello/admin",
137+
"request": {
138+
"auth": {
139+
"type": "bearer",
140+
"bearer": [
141+
{
142+
"key": "token",
143+
"value": "{{token}}",
144+
"type": "string"
145+
}
146+
]
147+
},
148+
"method": "GET",
149+
"header": [
150+
{
151+
"key": "accept",
152+
"value": "application/json"
153+
}
154+
],
155+
"url": {
156+
"raw": "http://localhost:8080/api/v1/hello/admin",
157+
"protocol": "http",
158+
"host": [
159+
"localhost"
160+
],
161+
"port": "8080",
162+
"path": [
163+
"api",
164+
"v1",
165+
"hello",
166+
"admin"
167+
]
168+
}
169+
},
170+
"response": []
171+
}
172+
]
173+
}

0 commit comments

Comments
 (0)