...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "request": { "method": "<http method>", # POST, GET, PUT etc. "urlPattern": "regex<regex pattern for your URLURL>" # for example /path/to/.*/your/content }, "response": { "status": <http status in int>, # http response status code, usually 200 "bodyFileName": "<your response file name>", # name of your response file, the wiremock will send back the content of your response file, not the file itself "headers": { "Content-Type": "application/json" # application type, when you send structured text as a response } } } |
create your response file in dmi-plugin-perf-stub/files folder
More information: Wiremock