If file is not found when replying it uses body but it would be nice to return 404 whenever the body part is not placed/defined in yml control file.
Sample control yml part related to question
- request:
url: ^/api/prod/(\d*)$
method: GET
response:
status: 200
file: data/api/prod/<% url[1] %>.json
Would this proposal be something useful or does it have a way to config this way already?
If file is not found when replying it uses body but it would be nice to return 404 whenever the body part is not placed/defined in yml control file.
Sample control yml part related to question
Would this proposal be something useful or does it have a way to config this way already?