mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 23:44:43 +01:00
Updated Admin API Reference (markdown)
@@ -189,6 +189,24 @@ Example request:
|
||||
}
|
||||
```
|
||||
|
||||
Create a new stub mapping and save this to disk. Example request:
|
||||
```js
|
||||
{
|
||||
"Guid": "dae02a0d-8a33-46ed-aab0-afbecc864344",
|
||||
"SaveToFile": true,
|
||||
"Title": "the_filename",
|
||||
"Request": {
|
||||
"Url": "/example",
|
||||
"Methods": [
|
||||
"get"
|
||||
]
|
||||
},
|
||||
"Response": {
|
||||
"BodyAsJson": { "result": "ok" }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
_Note_ : It's also possible to pre-load Mappings. This can be done by putting a file named `{guid}.json` in the `__admin\mapping` directory.
|
||||
|
||||
Example : `11111110-a633-40e8-a244-5cb80bc0ab66.json`
|
||||
|
||||
Reference in New Issue
Block a user