2023-10-07 22:27:30 +02:00
|
|
|
{
|
|
|
|
"meta": {
|
|
|
|
"type": "collection"
|
|
|
|
},
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"name": "content-type",
|
|
|
|
"value": "application/json",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Authorization",
|
|
|
|
"value": "Bearer 123",
|
|
|
|
"enabled": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "transaction-id",
|
|
|
|
"value": "{{transactionId}}",
|
|
|
|
"enabled": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"auth": {
|
|
|
|
"mode": "none",
|
|
|
|
"basic": {
|
|
|
|
"username": "john",
|
|
|
|
"password": "secret"
|
|
|
|
},
|
|
|
|
"bearer": {
|
|
|
|
"token": "123"
|
2023-10-28 16:59:50 +02:00
|
|
|
},
|
|
|
|
"digest": {
|
|
|
|
"username": "john",
|
|
|
|
"password": "secret"
|
2023-10-07 22:27:30 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"vars": {
|
|
|
|
"req": [
|
|
|
|
{
|
|
|
|
"name": "departingDate",
|
|
|
|
"value": "2020-01-01",
|
|
|
|
"enabled": true,
|
|
|
|
"local": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "returningDate",
|
|
|
|
"value": "2020-01-02",
|
|
|
|
"enabled": false,
|
|
|
|
"local": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"res": [
|
|
|
|
{
|
|
|
|
"name": "transactionId",
|
|
|
|
"value": "$res.body.transactionId",
|
|
|
|
"enabled": false,
|
|
|
|
"local": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"script": {
|
|
|
|
"req": "console.log(\"In Collection pre Request Script\");",
|
|
|
|
"res": "console.log(\"In Collection post Request Script\");"
|
|
|
|
},
|
|
|
|
"docs": "This request needs auth token to be set in the headers."
|
|
|
|
}
|