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 pattern for your URL" # for example /path/to/.*/your/content
    },
    "response": {
        "status": <http status>status in int>, # http response status code, usually 200
        "bodyFileName": "moduleResponse.json",<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