Updated Admin API Reference (markdown)

Stef Heyenrath
2017-02-10 20:39:16 +01:00
parent 22fceac337
commit 37a9e7a643

@@ -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.