scenario-generator
Version:
From input recipes generate json file containing HTTP requests and responses
106 lines • 2.46 kB
JSON
[
{
"HTTP": {
"request": {
"path": "http://localhost:8080/api/v1/resource/Fornebu/483b9df7-13d6-479b-87a2-19348d5ed5a7",
"method": "POST",
"body": {
"code": "Blossom"
},
"headers": {
"Content-Type": "application/json",
"Accept": "*/*",
"x-company-header": "Intact"
}
},
"response": {
"body": {
"branch": "Fornebu",
"resource": "483b9df7-13d6-479b-87a2-19348d5ed5a7"
},
"statusCode": "200"
}
}
},
{
"HTTP": {
"request": {
"path": "http://localhost:8080/api/v1/resource/humpty/bec2303e-5689-432f-a8fa-a3ad4f3930d1",
"method": "POST",
"body": {
"valueDate": "2022-02-22",
"money": "67519199"
},
"headers": {
"Content-Type": "application/json",
"Accept": "*/*",
"x-company-header": "Intact"
}
},
"response": {
"body": {
"twigs": [
"a",
"b"
],
"resources": {
"id": "bec2303e-5689-432f-a8fa-a3ad4f3930d1"
}
},
"statusCode": "200"
}
}
},
{
"HTTP": {
"request": {
"path": "http://localhost:8080/api/v1/resource/Fornebu/fc748a4a-c44a-4a33-93e7-325e2a85c958",
"method": "POST",
"body": {
"code": "Blossom"
},
"headers": {
"Content-Type": "application/json",
"Accept": "*/*",
"x-company-header": "Intact"
}
},
"response": {
"body": {
"branch": "Fornebu",
"resource": "fc748a4a-c44a-4a33-93e7-325e2a85c958"
},
"statusCode": "200"
}
}
},
{
"HTTP": {
"request": {
"path": "http://localhost:8080/api/v1/resource/humpty/97d04d73-29b6-48c3-8830-18a1c698ec35",
"method": "POST",
"body": {
"valueDate": "2022-02-22",
"money": "7347505"
},
"headers": {
"Content-Type": "application/json",
"Accept": "*/*",
"x-company-header": "Intact"
}
},
"response": {
"body": {
"twigs": [
"a",
"b"
],
"resources": {
"id": "97d04d73-29b6-48c3-8830-18a1c698ec35"
}
},
"statusCode": "200"
}
}
}
]