WireMock - More Advanced Stubbing and Templates
Video Walkthrough
The First Version of the Mapping File
json
{
"request": {
"method": "POST",
"url": "/friends"
},
"response": {
"status": 201,
"body": "Added Your Friend"
}
}The Second Version
json
{
"request": {
"method": "POST",
"url": "/friends"
},
"response": {
"status": 201,
"transformers": ["response-template"],
"bodyFileName": "added-friend.json"
}
}