Files
interfake/examples-command-line/get-and-post-with-after-response.json

52 lines
685 B
JSON

[
{
"request": {
"url": "/books",
"method": "get"
},
"response": {
"code":200,
"body": {
"books": [{
"id":1,
"title":"The War of the Worlds"
}]
}
}
},
{
"request": {
"url": "/books",
"method": "post"
},
"response": {
"code":201,
"body": {}
},
"afterResponse": {
"endpoints": [
{
"request": {
"url": "/books",
"method": "get"
},
"response": {
"code":200,
"body": {
"books": [
{
"id":1,
"title":"The War of the Worlds"
},
{
"id":2,
"title":"Ender's Game"
}
]
}
}
}
]
}
}
]