Hi !
I have a question.
It's possible to use in the response some data from the request as it is written in the documentation and it works :)
Exemple :
{
"request": {
"method": "GET",
"urlPath": "/some/thing"
},
"response": {
"status": 200,
"jsonBody": {
"uuid": "c80ec299-e09d-43ee-afcf-10f4eeee349a",
"lastModificationDate": "2016-11-21T10:02:27.390Z",
"title": "{{request.url}}",
},
"headers": {
"Content-Type": "application/json"
}
}
}
So far, it was enough :) But I'd like to extend the use of Handlebar template with some data that are not available in the request.
In the next example, I'd like to value the {{today}} with the current date.
Exemple :
{
"request": {
"method": "GET",
"urlPath": "/some/thing"
},
"response": {
"status": 200,
"jsonBody": {
"uuid": "c80ec299-e09d-43ee-afcf-10f4eeee349a",
"lastModificationDate": "{{today}}",
"title": "{{request.url}}",
},
"headers": {
"Content-Type": "application/json"
}
}
}
What is the best way to do so ?
Thanks for the stuff done on this great mock and stub framework.
Hervé