Skip to content

Commit 30d52f8

Browse files
author
maharshi
committed
Updated API collection
1 parent d6ec50d commit 30d52f8

File tree

1 file changed

+114
-3
lines changed

1 file changed

+114
-3
lines changed

React-Redux.postman_collection.json

Lines changed: 114 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"key": "password",
24-
"value": "12345678",
24+
"value": "123456",
2525
"type": "text"
2626
}
2727
]
@@ -93,9 +93,15 @@
9393
"formdata": []
9494
},
9595
"url": {
96-
"raw": "{{site_url}}profile",
96+
"raw": "{{site_url}}profile?user_id=123",
9797
"host": [
9898
"{{site_url}}profile"
99+
],
100+
"query": [
101+
{
102+
"key": "user_id",
103+
"value": "123"
104+
}
99105
]
100106
}
101107
},
@@ -120,12 +126,117 @@
120126
"formdata": []
121127
},
122128
"url": {
123-
"raw": "{{site_url}}users/list",
129+
"raw": "{{site_url}}users/list?page=1",
124130
"host": [
125131
"{{site_url}}users"
126132
],
127133
"path": [
128134
"list"
135+
],
136+
"query": [
137+
{
138+
"key": "page",
139+
"value": "1"
140+
}
141+
]
142+
}
143+
},
144+
"response": []
145+
},
146+
{
147+
"name": "Update Profile",
148+
"request": {
149+
"method": "POST",
150+
"header": [
151+
{
152+
"key": "Authorization",
153+
"value": "{{token}}",
154+
"type": "text"
155+
}
156+
],
157+
"body": {
158+
"mode": "formdata",
159+
"formdata": [
160+
{
161+
"key": "avatar",
162+
"type": "file",
163+
"src": "/home/maharshi/Desktop/user_images/user_avatar.png"
164+
},
165+
{
166+
"key": "name",
167+
"value": "Maharshi2",
168+
"type": "text"
169+
},
170+
{
171+
"key": "email",
172+
"value": "mike01@mailinator.com",
173+
"type": "text"
174+
},
175+
{
176+
"key": "password",
177+
"value": "",
178+
"type": "text"
179+
},
180+
{
181+
"key": "password_confirmation",
182+
"value": "",
183+
"type": "text"
184+
}
185+
]
186+
},
187+
"url": {
188+
"raw": "{{site_url}}profile",
189+
"host": [
190+
"{{site_url}}profile"
191+
]
192+
}
193+
},
194+
"response": []
195+
},
196+
{
197+
"name": "Create User",
198+
"request": {
199+
"method": "POST",
200+
"header": [
201+
{
202+
"key": "Authorization",
203+
"type": "text",
204+
"value": "{{token}}"
205+
}
206+
],
207+
"body": {
208+
"mode": "formdata",
209+
"formdata": [
210+
{
211+
"key": "avatar",
212+
"type": "file",
213+
"src": "/home/maharshi/Desktop/user_images/vr-next-power-ui_01.jpg",
214+
"disabled": true
215+
},
216+
{
217+
"key": "name",
218+
"value": "Maharshi2",
219+
"type": "text"
220+
},
221+
{
222+
"key": "email",
223+
"value": "mike03@mailinator.com",
224+
"type": "text"
225+
},
226+
{
227+
"key": "password",
228+
"value": "12345679",
229+
"type": "text"
230+
}
231+
]
232+
},
233+
"url": {
234+
"raw": "{{site_url}}create/user",
235+
"host": [
236+
"{{site_url}}create"
237+
],
238+
"path": [
239+
"user"
129240
]
130241
}
131242
},

0 commit comments

Comments
 (0)