mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-07-17 02:21:18 +02:00
Updated Admin API Reference (markdown)
@@ -171,6 +171,33 @@ Example request:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
_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"
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"Request": {
|
||||||
|
"Path": {
|
||||||
|
"Matchers": [
|
||||||
|
{
|
||||||
|
"Name": "WildcardMatcher",
|
||||||
|
"Pattern": "/static/mapping"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Methods": [
|
||||||
|
"get"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Response": {
|
||||||
|
"BodyAsJson": { "body": "static mapping" },
|
||||||
|
"Headers": {
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### `DELETE /__admin/mappings`
|
### `DELETE /__admin/mappings`
|
||||||
Delete all stub mappings.
|
Delete all stub mappings.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user