Skip to content

Commit 3c64a57

Browse files
watchtheblurlpatmo
authored andcommitted
Add GET endpoint for search to Postman #149
1 parent c33995d commit 3c64a57

File tree

1 file changed

+33
-20
lines changed

1 file changed

+33
-20
lines changed

postman/CodeBuddies.postman_collection.json

+33-20
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info": {
3-
"_postman_id": "5b8c55c5-59e8-4e5b-a4c4-4fe5e0386dec",
3+
"_postman_id": "439a9eb2-2c95-40f5-beb9-d7d40a660755",
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": "3fdee563-a6f5-425f-9c34-6887b3d8b4a0",
18+
"id": "16cd9a3f-dd4a-49e8-95bb-5a223ea4521a",
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": "df18b545-6f8c-4d4e-b2c0-7d194a57ae7f",
29+
"id": "57091b04-855b-42db-8f77-85842f515779",
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": "5f595540-a1db-46b0-9008-9bbcc68c4fa3",
80+
"id": "a065c4da-7168-4f34-a5d7-72c19c72f004",
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": "c5b6218c-1b5f-4d9f-ad1a-0af10e88e5d2",
91+
"id": "2e42b467-5668-40f6-889a-1f28c5766a34",
9292
"exec": [
9393
""
9494
],
@@ -97,9 +97,6 @@
9797
}
9898
],
9999
"request": {
100-
"auth": {
101-
"type": "noauth"
102-
},
103100
"method": "POST",
104101
"header": [
105102
{
@@ -192,26 +189,42 @@
192189
}
193190
},
194191
"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": []
195218
}
196219
],
197220
"protocolProfileBehavior": {}
198221
}
199222
],
200-
"auth": {
201-
"type": "bearer",
202-
"bearer": [
203-
{
204-
"key": "token",
205-
"value": "{{token}}",
206-
"type": "string"
207-
}
208-
]
209-
},
210223
"event": [
211224
{
212225
"listen": "prerequest",
213226
"script": {
214-
"id": "2d0d1108-ddd6-4b84-be9f-4032954698ff",
227+
"id": "1a4b8bb3-f435-4d5a-a1db-2abfd238538c",
215228
"type": "text/javascript",
216229
"exec": [
217230
""
@@ -221,7 +234,7 @@
221234
{
222235
"listen": "test",
223236
"script": {
224-
"id": "18a56020-3cca-4e90-9ad0-fa01c7098f5e",
237+
"id": "8caf2b43-2571-4dbe-8ecd-faabfc4b8b5a",
225238
"type": "text/javascript",
226239
"exec": [
227240
""

0 commit comments

Comments
 (0)