Skip to content

Commit 02a2fa6

Browse files
committed
add postman collection
1 parent e8ca392 commit 02a2fa6

File tree

1 file changed

+37
-26
lines changed

1 file changed

+37
-26
lines changed

postman/blog-postman-requests.postman_collection.json

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,16 @@
7474
},
7575
{
7676
"name": "Get All BlogEntries Paginated",
77-
"request": {
78-
"method": "GET",
79-
"header": [],
80-
"url": {
81-
"raw": "http://localhost:3000/api/blog-entries",
82-
"protocol": "http",
83-
"host": [
84-
"localhost"
85-
],
86-
"port": "3000",
87-
"path": [
88-
"api",
89-
"blog-entries"
90-
]
91-
}
77+
"protocolProfileBehavior": {
78+
"disableBodyPruning": true
9279
},
93-
"response": []
94-
},
95-
{
96-
"name": "Get BlogEntries by user",
9780
"request": {
9881
"method": "GET",
9982
"header": [],
83+
"body": {
84+
"mode": "urlencoded",
85+
"urlencoded": []
86+
},
10087
"url": {
10188
"raw": "http://localhost:3000/api/blog-entries",
10289
"protocol": "http",
@@ -234,15 +221,17 @@
234221
"method": "GET",
235222
"header": [],
236223
"url": {
237-
"raw": "http://localhost:3000/api/blog-entries",
224+
"raw": "http://localhost:3000/api/blog-entries/user/7",
238225
"protocol": "http",
239226
"host": [
240227
"localhost"
241228
],
242229
"port": "3000",
243230
"path": [
244231
"api",
245-
"blog-entries"
232+
"blog-entries",
233+
"user",
234+
"7"
246235
]
247236
}
248237
},
@@ -256,7 +245,7 @@
256245
"bearer": [
257246
{
258247
"key": "token",
259-
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjo3LCJuYW1lIjoidXBkYXRlZE5hbWU1RCIsInVzZXJuYW1lIjoidGhvbWFzMTIzIiwiZW1haWwiOiJ0aG9tYXNAdGVzdDUuZGUiLCJyb2xlIjoiYWRtaW4iLCJwcm9maWxlSW1hZ2UiOiJUaHVtYm5haWxORVUyODhiY2UyOC0zYWE1LTQzYjctYTg0OC04NjMwYzJmNTdjM2QucG5nIn0sImlhdCI6MTU5NjQ4MTQxNiwiZXhwIjoxNTk2NDkxNDE2fQ.5vsx9RXAr2kU0nSGeI5jmIseMISbFg1gJ9GHJyriTCA",
248+
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjo3LCJuYW1lIjoidXBkYXRlZE5hbWU2NTU1YWEiLCJ1c2VybmFtZSI6InVwZGF0ZWRVc2VybmFtZWQiLCJlbWFpbCI6InRob21hc0B0ZXN0NS5kZSIsInJvbGUiOiJhZG1pbiIsInByb2ZpbGVJbWFnZSI6ImJpZ2ZpbGUwOWQxNTY0Ny0wMzBlLTRlMzEtODFmYy0yZmMzNGVhMjQ2MmUucG5nIn0sImlhdCI6MTU5Nzk0ODA0MiwiZXhwIjoxNTk3OTU4MDQyfQ.eY2JDUJu_qF-AwswgC8dwNpzSMxTcwotsfQxWkpw0QE",
260249
"type": "string"
261250
}
262251
]
@@ -265,23 +254,23 @@
265254
"header": [],
266255
"body": {
267256
"mode": "raw",
268-
"raw": "{\r\n \"title\": \"Test Title1\",\r\n \"description\": \"test description1\",\r\n \"body\": \"test body1\"\r\n}",
257+
"raw": "{\r\n \"title\": \"Test Title7\",\r\n \"description\": \"test description7\",\r\n \"body\": \"test body7\"\r\n}",
269258
"options": {
270259
"raw": {
271260
"language": "json"
272261
}
273262
}
274263
},
275264
"url": {
276-
"raw": "http://localhost:3000/api/blogs",
265+
"raw": "http://localhost:3000/api/blog-entries",
277266
"protocol": "http",
278267
"host": [
279268
"localhost"
280269
],
281270
"port": "3000",
282271
"path": [
283272
"api",
284-
"blogs"
273+
"blog-entries"
285274
]
286275
}
287276
},
@@ -291,7 +280,7 @@
291280
"protocolProfileBehavior": {}
292281
},
293282
{
294-
"name": "User-Entity",
283+
"name": "User",
295284
"item": [
296285
{
297286
"name": "Get All Users",
@@ -580,6 +569,28 @@
580569
"response": []
581570
}
582571
],
572+
"event": [
573+
{
574+
"listen": "prerequest",
575+
"script": {
576+
"id": "e05d518c-0229-4a60-ad22-5a4ddfbe322d",
577+
"type": "text/javascript",
578+
"exec": [
579+
""
580+
]
581+
}
582+
},
583+
{
584+
"listen": "test",
585+
"script": {
586+
"id": "52b6841d-906b-4888-8ac3-2ce78f1b3c07",
587+
"type": "text/javascript",
588+
"exec": [
589+
""
590+
]
591+
}
592+
}
593+
],
583594
"protocolProfileBehavior": {}
584595
}
585596
],

0 commit comments

Comments
 (0)