Files
scribe/tests/Fixtures/collection_with_custom_headers.json
Daniel Alm 573e9efb63 Include query parameters and headers in the generated Postman collection. (#537)
* Include query parameters in the generated Postman collection.

* Style fixes

* Also include headers in the Postman collection.

* Also include JSON content type headers for good measure.

* Update the tests.

* Add a test to validate the body parameters in a Postman collection.

* Remove the "Content-Type" header again, as we are actually sending content as form data.

* Add a query test and make the tests more deterministic.

* PR fixes.
2019-07-16 10:42:46 +01:00

44 lines
1.4 KiB
JSON

{
"variables": [],
"info": {
"name": "Laravel API",
"_postman_id": "",
"description": "",
"schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.0.0\/collection.json"
},
"item": [
{
"name": "Group A",
"description": "",
"item": [
{
"name": "http://localhost/api/headers",
"request": {
"url": "http:\/\/localhost\/api\/headers",
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "customAuthToken"
},
{
"key": "Custom-Header",
"value": "NotSoCustom"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "formdata",
"formdata": []
},
"description": "",
"response": []
}
}
]
}
]
}