From 37a9e7a6439fad1f493eb4448048888d2f486875 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Fri, 10 Feb 2017 20:39:16 +0100 Subject: [PATCH] Updated Admin API Reference (markdown) --- Admin-API-Reference.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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.