Last active
January 3, 2022 15:57
-
-
Save harshit-budhraja/61936eaf807bc536409ae8988763d149 to your computer and use it in GitHub Desktop.
Sample Postman Collection (v2.1.0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "a1b177ed-1967-4926-9c27-b9d1bc3e7930", | |
"name": "My First Collection", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Sample endpoint: Returns details about a particular user", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "{{baseUrl}}/user?id=-78891345", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"user" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "-78891345", | |
"description": "(Required) ID of the user" | |
} | |
] | |
} | |
}, | |
"response": [ | |
{ | |
"name": "Sample response: Details about a user by ID", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"description": "Added as a part of security scheme: basic", | |
"key": "Authorization", | |
"value": "Basic <credentials>" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/user?id=-78891345", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"user" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "-78891345" | |
} | |
] | |
} | |
}, | |
"status": "OK", | |
"code": 200, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "x-next", | |
"value": "sed deserunt labore sit quis", | |
"description": "A link to the next page of responses" | |
}, | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"id\": -82586361,\n \"name\": \"id adipisicing\",\n \"tag\": \"adipisicing sit ipsum\"\n}" | |
}, | |
{ | |
"name": "Unexpected error", | |
"originalRequest": { | |
"method": "GET", | |
"header": [ | |
{ | |
"description": "Added as a part of security scheme: basic", | |
"key": "Authorization", | |
"value": "Basic <credentials>" | |
} | |
], | |
"url": { | |
"raw": "{{baseUrl}}/user?id=-78891345", | |
"host": [ | |
"{{baseUrl}}" | |
], | |
"path": [ | |
"user" | |
], | |
"query": [ | |
{ | |
"key": "id", | |
"value": "-78891345" | |
} | |
] | |
} | |
}, | |
"status": "Internal Server Error", | |
"code": 500, | |
"_postman_previewlanguage": "json", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json" | |
} | |
], | |
"cookie": [], | |
"body": "{\n \"code\": -58990468,\n \"message\": \"sed\"\n}" | |
} | |
] | |
} | |
], | |
"auth": { | |
"type": "basic", | |
"basic": [ | |
{ | |
"key": "username", | |
"value": "<Basic Auth Username>", | |
"type": "string" | |
}, | |
{ | |
"key": "password", | |
"value": "<Basic Auth Password>", | |
"type": "string" | |
} | |
] | |
}, | |
"variable": [ | |
{ | |
"key": "baseUrl", | |
"value": "localhost:3000", | |
"type": "string" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment