WireMock - Recording Multiple Responses
Video Walkthrough
json
{
"id" : "82e4b333-f497-3464-a3bc-450135076c90",
"request" : {
"url" : "/todos",
"method" : "GET"
},
"response" : {
"status" : 200,
"bodyFileName" : "body-todos.json",
"headers" : {
"Content-Type": "application/json"
}
},
"uuid" : "82e4b333-f497-3464-a3bc-450135076c90"
}json
[
{
"userId": 1,
"id": 1,
"title": "Clean Garage",
"completed": false
},
{
"userId": 1,
"id": 2,
"title": "Shovel Snow",
"completed": true
},
{
"userId": 1,
"id": 3,
"title": "Cancel United Card",
"completed": false
}
]json
{
"request": {
"url": "/todos",
"method": "GET"
},
"response": {
"status": 404
}
}