Sashidhar J
03/31/2023, 2:19 PMAaron
03/31/2023, 2:31 PMSashidhar J
03/31/2023, 3:35 PMAaron
03/31/2023, 4:38 PM{
"request": {
"url": "/test"
},
"response": {
"status": 200,
"bodyFileName": "{{ jsonPath request.body '$.filename'}}.json"
}
}
Will return the value of the filename
key in the request body. So, a request with a body like { filename: "test" }
, would resolve to test.json
, and serve up the file at __files/test.json
.