Closed rangerranger closed 6 years ago
By static mappings, I think you mean the mappings defined in the .json file which are loaded at startup?
This is possible.
Transformation can be done like:
"UseTransformer": true,
"StatusCode": 205,
"BodyAsJson": { "result": "test - {{request.path}}" }
And delay is like:
"Response": {
"StatusCode": 200,
"Delay": 100
}
See also this example https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#post-__adminmappings
Thank you Stef.
Aroon
Hi - Do you know if it is possible to add the WithTransformer and WithDelay to already recorded static mappings? Wanted to check if this was already known before running some tests. Thank you. Aroon