123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- {
- "variable": [
- {
- "id": "baseUrl",
- "key": "baseUrl",
- "type": "string",
- "name": "string",
- "value": "http://localhost"
- }
- ],
- "info": {
- "name": "GREAT API!",
- "_postman_id": "",
- "description": "",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
- "version": "3.9.9"
- },
- "item": [
- {
- "name": "Group A",
- "description": "",
- "item": [
- {
- "name": "Endpoint with body parameters as array.",
- "request": {
- "url": {
- "host": "{{baseUrl}}",
- "path": "api/withBodyParametersAsArray",
- "query": [],
- "raw": "{{baseUrl}}/api/withBodyParametersAsArray"
- },
- "method": "POST",
- "header": [
- {
- "key": "Custom-Header",
- "value": "NotSoCustom"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "[{\"first_name\":\"John\",\"last_name\":\"Doe\",\"contacts\":[{\"first_name\":\"Janelle\",\"last_name\":\"Monáe\"}],\"roles\":[\"Admin\"]}]"
- },
- "description": "",
- "auth": {
- "type": "noauth"
- }
- },
- "response": []
- },
- {
- "name": "Endpoint with body form data parameters.",
- "request": {
- "url": {
- "host": "{{baseUrl}}",
- "path": "api/withFormDataParams",
- "query": [],
- "raw": "{{baseUrl}}/api/withFormDataParams"
- },
- "method": "POST",
- "header": [
- {
- "key": "Custom-Header",
- "value": "NotSoCustom"
- },
- {
- "key": "Content-Type",
- "value": "multipart/form-data"
- },
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "formdata",
- "formdata": [
- {
- "key": "name",
- "value": "cat.jpg",
- "type": "text",
- "description": "Name of image."
- },
- {
- "key": "image",
- "src": [],
- "type": "file"
- }
- ]
- },
- "description": "",
- "auth": {
- "type": "noauth"
- }
- },
- "response": []
- },
- {
- "name": "Endpoint with body parameters.",
- "request": {
- "url": {
- "host": "{{baseUrl}}",
- "path": "api/withBodyParameters",
- "query": [],
- "raw": "{{baseUrl}}/api/withBodyParameters"
- },
- "method": "POST",
- "header": [
- {
- "key": "Custom-Header",
- "value": "NotSoCustom"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\"user_id\":9,\"room_id\":\"architecto\",\"forever\":false,\"another_one\":4326.41688,\"yet_another_param\":{\"name\":\"architecto\"},\"even_more_param\":[4326.41688],\"book\":{\"name\":\"architecto\",\"author_id\":16,\"pages_count\":16},\"ids\":[16],\"users\":[{\"first_name\":\"John\",\"last_name\":\"Doe\"}]}"
- },
- "description": "",
- "auth": {
- "type": "noauth"
- }
- },
- "response": []
- },
- {
- "name": "GET api/withQueryParameters",
- "request": {
- "url": {
- "host": "{{baseUrl}}",
- "path": "api/withQueryParameters",
- "query": [
- {
- "key": "location_id",
- "value": "architecto",
- "description": "The id of the location.",
- "disabled": false
- },
- {
- "key": "user_id",
- "value": "me",
- "description": "The id of the user.",
- "disabled": false
- },
- {
- "key": "page",
- "value": "4",
- "description": "The page number.",
- "disabled": false
- },
- {
- "key": "filters",
- "value": "architecto",
- "description": "The filters.",
- "disabled": false
- },
- {
- "key": "url_encoded",
- "value": "%2B+%5B%5D%26%3D",
- "description": "Used for testing that URL parameters will be URL-encoded where needed.",
- "disabled": false
- }
- ],
- "raw": "{{baseUrl}}/api/withQueryParameters?location_id=architecto&user_id=me&page=4&filters=architecto&url_encoded=%2B+%5B%5D%26%3D"
- },
- "method": "GET",
- "header": [
- {
- "key": "Custom-Header",
- "value": "NotSoCustom"
- },
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "body": null,
- "description": "",
- "auth": {
- "type": "noauth"
- }
- },
- "response": [
- {
- "header": [
- {
- "key": "content-type",
- "value": "text/html; charset=UTF-8"
- },
- {
- "key": "cache-control",
- "value": "no-cache, private"
- }
- ],
- "code": 200,
- "body": "",
- "name": null
- }
- ]
- },
- {
- "name": "GET api/withAuthTag",
- "request": {
- "url": {
- "host": "{{baseUrl}}",
- "path": "api/withAuthTag",
- "query": [],
- "raw": "{{baseUrl}}/api/withAuthTag"
- },
- "method": "GET",
- "header": [
- {
- "key": "Custom-Header",
- "value": "NotSoCustom"
- },
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "body": null,
- "description": ""
- },
- "response": [
- {
- "header": [
- {
- "key": "content-type",
- "value": "text/html; charset=UTF-8"
- },
- {
- "key": "cache-control",
- "value": "no-cache, private"
- }
- ],
- "code": 200,
- "body": "",
- "name": null
- }
- ]
- }
- ]
- },
- {
- "name": "Other\ud83d\ude0e",
- "description": "",
- "item": [
- {
- "name": "GET api/echoesUrlParameters/{param}/{param2}/{param3?}/{param4?}",
- "request": {
- "url": {
- "host": "{{baseUrl}}",
- "path": "api/echoesUrlParameters/:param/:param2/:param3/:param4",
- "query": [
- {
- "key": "something",
- "value": "architecto",
- "description": "",
- "disabled": false
- }
- ],
- "raw": "{{baseUrl}}/api/echoesUrlParameters/:param/:param2/:param3/:param4?something=architecto",
- "variable": [
- {
- "id": "param",
- "key": "param",
- "value": "4",
- "description": ""
- },
- {
- "id": "param2",
- "key": "param2",
- "value": "architecto",
- "description": ""
- },
- {
- "id": "param3",
- "key": "param3",
- "value": "architecto",
- "description": ""
- },
- {
- "id": "param4",
- "key": "param4",
- "value": null,
- "description": ""
- }
- ]
- },
- "method": "GET",
- "header": [
- {
- "key": "Custom-Header",
- "value": "NotSoCustom"
- },
- {
- "key": "Accept",
- "value": "application/json"
- }
- ],
- "body": null,
- "description": "",
- "auth": {
- "type": "noauth"
- }
- },
- "response": [
- {
- "header": [
- {
- "key": "cache-control",
- "value": "no-cache, private"
- },
- {
- "key": "content-type",
- "value": "application/json"
- }
- ],
- "code": 200,
- "body": "{\"param\":\"4\",\"param2\":\"architecto\",\"param3\":\"architecto\",\"param4\":null}",
- "name": null
- }
- ]
- }
- ]
- }
- ],
- "auth": {
- "type": "bearer",
- "bearer": [
- {
- "key": "key",
- "type": "string"
- }
- ]
- }
- }
|