|
1 | 1 | {
|
2 | 2 | "info": {
|
3 |
| - "_postman_id": "5b8c55c5-59e8-4e5b-a4c4-4fe5e0386dec", |
| 3 | + "_postman_id": "439a9eb2-2c95-40f5-beb9-d7d40a660755", |
4 | 4 | "name": "CodeBuddies",
|
5 | 5 | "description": "# CodeBuddies\n\nThis collection contains requests for CodeBuddies backend APIs.",
|
6 | 6 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
15 | 15 | {
|
16 | 16 | "listen": "prerequest",
|
17 | 17 | "script": {
|
18 |
| - "id": "3fdee563-a6f5-425f-9c34-6887b3d8b4a0", |
| 18 | + "id": "16cd9a3f-dd4a-49e8-95bb-5a223ea4521a", |
19 | 19 | "exec": [
|
20 | 20 | "pm.globals.set(\"username\", pm.variables.replaceIn(\"{{$randomUserName}}\"));",
|
21 | 21 | "pm.globals.set(\"password\", pm.variables.replaceIn(\"{{$randomPassword}}\"));"
|
|
26 | 26 | {
|
27 | 27 | "listen": "test",
|
28 | 28 | "script": {
|
29 |
| - "id": "df18b545-6f8c-4d4e-b2c0-7d194a57ae7f", |
| 29 | + "id": "57091b04-855b-42db-8f77-85842f515779", |
30 | 30 | "exec": [
|
31 | 31 | "var jsonData = pm.response.json();",
|
32 | 32 | "pm.globals.set(\"token\", jsonData.token);"
|
|
77 | 77 | {
|
78 | 78 | "listen": "test",
|
79 | 79 | "script": {
|
80 |
| - "id": "5f595540-a1db-46b0-9008-9bbcc68c4fa3", |
| 80 | + "id": "a065c4da-7168-4f34-a5d7-72c19c72f004", |
81 | 81 | "exec": [
|
82 | 82 | "var jsonData = pm.response.json();",
|
83 | 83 | "pm.globals.set(\"token\", jsonData.token);"
|
|
88 | 88 | {
|
89 | 89 | "listen": "prerequest",
|
90 | 90 | "script": {
|
91 |
| - "id": "c5b6218c-1b5f-4d9f-ad1a-0af10e88e5d2", |
| 91 | + "id": "2e42b467-5668-40f6-889a-1f28c5766a34", |
92 | 92 | "exec": [
|
93 | 93 | ""
|
94 | 94 | ],
|
|
97 | 97 | }
|
98 | 98 | ],
|
99 | 99 | "request": {
|
100 |
| - "auth": { |
101 |
| - "type": "noauth" |
102 |
| - }, |
103 | 100 | "method": "POST",
|
104 | 101 | "header": [
|
105 | 102 | {
|
|
192 | 189 | }
|
193 | 190 | },
|
194 | 191 | "response": []
|
| 192 | + }, |
| 193 | + { |
| 194 | + "name": "Search", |
| 195 | + "request": { |
| 196 | + "method": "GET", |
| 197 | + "header": [], |
| 198 | + "url": { |
| 199 | + "raw": "{{api_url}}/api/v1/resources/?search=benefit", |
| 200 | + "host": [ |
| 201 | + "{{api_url}}" |
| 202 | + ], |
| 203 | + "path": [ |
| 204 | + "api", |
| 205 | + "v1", |
| 206 | + "resources", |
| 207 | + "" |
| 208 | + ], |
| 209 | + "query": [ |
| 210 | + { |
| 211 | + "key": "search", |
| 212 | + "value": "benefit" |
| 213 | + } |
| 214 | + ] |
| 215 | + } |
| 216 | + }, |
| 217 | + "response": [] |
195 | 218 | }
|
196 | 219 | ],
|
197 | 220 | "protocolProfileBehavior": {}
|
198 | 221 | }
|
199 | 222 | ],
|
200 |
| - "auth": { |
201 |
| - "type": "bearer", |
202 |
| - "bearer": [ |
203 |
| - { |
204 |
| - "key": "token", |
205 |
| - "value": "{{token}}", |
206 |
| - "type": "string" |
207 |
| - } |
208 |
| - ] |
209 |
| - }, |
210 | 223 | "event": [
|
211 | 224 | {
|
212 | 225 | "listen": "prerequest",
|
213 | 226 | "script": {
|
214 |
| - "id": "2d0d1108-ddd6-4b84-be9f-4032954698ff", |
| 227 | + "id": "1a4b8bb3-f435-4d5a-a1db-2abfd238538c", |
215 | 228 | "type": "text/javascript",
|
216 | 229 | "exec": [
|
217 | 230 | ""
|
|
221 | 234 | {
|
222 | 235 | "listen": "test",
|
223 | 236 | "script": {
|
224 |
| - "id": "18a56020-3cca-4e90-9ad0-fa01c7098f5e", |
| 237 | + "id": "8caf2b43-2571-4dbe-8ecd-faabfc4b8b5a", |
225 | 238 | "type": "text/javascript",
|
226 | 239 | "exec": [
|
227 | 240 | ""
|
|
0 commit comments