Vincente
11/14/2024, 12:23 AMLee Turner
11/14/2024, 8:29 AMVincente
11/18/2024, 3:26 AMLee Turner
11/18/2024, 10:17 AM{{#if name}}{{{name}}}{{else}}{{{method}}}-{{{url}}}{{/if}}-{{{id}}}
so for this mapping:
{
"mappings": [
{
"name": "lees-cool-mapping",
"request": {
"url": "/test",
"method": "GET"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": "{\"message\": \"Hello, World!\"}"
}
}
]
}
You will get a filename that looks something like - lees-cool-mapping-a294d0c5-0fc8-4b40-a7e2-12dd015ac5e0.json
If you don't have a name in the stub it will use the url and method instead.
If I set the template to something like this - java -jar wiremock-standalone-3.9.2.jar --filename-template {{{name}}}-{{{method}}}-{{{url}}}.json
The file will be saved with the name along with the method and url - lees-cool-mapping-get-test.json
Is that the kind of thing you are looking for?Vincente
11/18/2024, 1:14 PMLee Turner
11/18/2024, 1:27 PMVincente
11/19/2024, 12:36 AMLee Turner
11/19/2024, 7:33 AM