Skip to content

Commit 551d43e

Browse files
watchtheblurlpatmo
authored andcommitted
update postman file to keep bearer token
1 parent 3c64a57 commit 551d43e

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

postman/CodeBuddies.postman_collection.json

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info": {
3-
"_postman_id": "439a9eb2-2c95-40f5-beb9-d7d40a660755",
3+
"_postman_id": "33a47d6b-653f-44e0-aede-2ffbb1da79a3",
44
"name": "CodeBuddies",
55
"description": "# CodeBuddies\n\nThis collection contains requests for CodeBuddies backend APIs.",
66
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
@@ -15,7 +15,7 @@
1515
{
1616
"listen": "prerequest",
1717
"script": {
18-
"id": "16cd9a3f-dd4a-49e8-95bb-5a223ea4521a",
18+
"id": "9abecff8-0a40-4958-b961-b1409bbf26b1",
1919
"exec": [
2020
"pm.globals.set(\"username\", pm.variables.replaceIn(\"{{$randomUserName}}\"));",
2121
"pm.globals.set(\"password\", pm.variables.replaceIn(\"{{$randomPassword}}\"));"
@@ -26,7 +26,7 @@
2626
{
2727
"listen": "test",
2828
"script": {
29-
"id": "57091b04-855b-42db-8f77-85842f515779",
29+
"id": "af8aeee3-9500-43b6-9377-bfa7c3a561db",
3030
"exec": [
3131
"var jsonData = pm.response.json();",
3232
"pm.globals.set(\"token\", jsonData.token);"
@@ -77,7 +77,7 @@
7777
{
7878
"listen": "test",
7979
"script": {
80-
"id": "a065c4da-7168-4f34-a5d7-72c19c72f004",
80+
"id": "8f6e61ef-2617-4199-a1da-d01e3f232086",
8181
"exec": [
8282
"var jsonData = pm.response.json();",
8383
"pm.globals.set(\"token\", jsonData.token);"
@@ -88,7 +88,7 @@
8888
{
8989
"listen": "prerequest",
9090
"script": {
91-
"id": "2e42b467-5668-40f6-889a-1f28c5766a34",
91+
"id": "572b9c2e-cecc-4fb6-82d4-f5cf7d25a3cf",
9292
"exec": [
9393
""
9494
],
@@ -97,6 +97,9 @@
9797
}
9898
],
9999
"request": {
100+
"auth": {
101+
"type": "noauth"
102+
},
100103
"method": "POST",
101104
"header": [
102105
{
@@ -220,11 +223,21 @@
220223
"protocolProfileBehavior": {}
221224
}
222225
],
226+
"auth": {
227+
"type": "bearer",
228+
"bearer": [
229+
{
230+
"key": "token",
231+
"value": "{{token}}",
232+
"type": "string"
233+
}
234+
]
235+
},
223236
"event": [
224237
{
225238
"listen": "prerequest",
226239
"script": {
227-
"id": "1a4b8bb3-f435-4d5a-a1db-2abfd238538c",
240+
"id": "a2d64a11-feb5-427b-8928-5ef9bf8cc7b0",
228241
"type": "text/javascript",
229242
"exec": [
230243
""
@@ -234,7 +247,7 @@
234247
{
235248
"listen": "test",
236249
"script": {
237-
"id": "8caf2b43-2571-4dbe-8ecd-faabfc4b8b5a",
250+
"id": "fd65f89c-f27b-4185-b536-e7818a9eab45",
238251
"type": "text/javascript",
239252
"exec": [
240253
""

0 commit comments

Comments
 (0)