Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecss
titlenewRequest.json
{
    "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