mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-23 01:29:05 +01: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 all stub mappings.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user