diff --git a/Admin-API-Reference.md b/Admin-API-Reference.md index bd57d9d..a119a04 100644 --- a/Admin-API-Reference.md +++ b/Admin-API-Reference.md @@ -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.