|
1 | 1 | {
|
2 | 2 | "info": {
|
3 |
| - "_postman_id": "439a9eb2-2c95-40f5-beb9-d7d40a660755", |
| 3 | + "_postman_id": "33a47d6b-653f-44e0-aede-2ffbb1da79a3", |
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": "16cd9a3f-dd4a-49e8-95bb-5a223ea4521a", |
| 18 | + "id": "9abecff8-0a40-4958-b961-b1409bbf26b1", |
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": "57091b04-855b-42db-8f77-85842f515779", |
| 29 | + "id": "af8aeee3-9500-43b6-9377-bfa7c3a561db", |
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": "a065c4da-7168-4f34-a5d7-72c19c72f004", |
| 80 | + "id": "8f6e61ef-2617-4199-a1da-d01e3f232086", |
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": "2e42b467-5668-40f6-889a-1f28c5766a34", |
| 91 | + "id": "572b9c2e-cecc-4fb6-82d4-f5cf7d25a3cf", |
92 | 92 | "exec": [
|
93 | 93 | ""
|
94 | 94 | ],
|
|
97 | 97 | }
|
98 | 98 | ],
|
99 | 99 | "request": {
|
| 100 | + "auth": { |
| 101 | + "type": "noauth" |
| 102 | + }, |
100 | 103 | "method": "POST",
|
101 | 104 | "header": [
|
102 | 105 | {
|
|
220 | 223 | "protocolProfileBehavior": {}
|
221 | 224 | }
|
222 | 225 | ],
|
| 226 | + "auth": { |
| 227 | + "type": "bearer", |
| 228 | + "bearer": [ |
| 229 | + { |
| 230 | + "key": "token", |
| 231 | + "value": "{{token}}", |
| 232 | + "type": "string" |
| 233 | + } |
| 234 | + ] |
| 235 | + }, |
223 | 236 | "event": [
|
224 | 237 | {
|
225 | 238 | "listen": "prerequest",
|
226 | 239 | "script": {
|
227 |
| - "id": "1a4b8bb3-f435-4d5a-a1db-2abfd238538c", |
| 240 | + "id": "a2d64a11-feb5-427b-8928-5ef9bf8cc7b0", |
228 | 241 | "type": "text/javascript",
|
229 | 242 | "exec": [
|
230 | 243 | ""
|
|
234 | 247 | {
|
235 | 248 | "listen": "test",
|
236 | 249 | "script": {
|
237 |
| - "id": "8caf2b43-2571-4dbe-8ecd-faabfc4b8b5a", |
| 250 | + "id": "fd65f89c-f27b-4185-b536-e7818a9eab45", |
238 | 251 | "type": "text/javascript",
|
239 | 252 | "exec": [
|
240 | 253 | ""
|
|
0 commit comments