From 9d185c1227410a735001482bd903dde44b2349a5 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Mon, 17 Jun 2019 19:36:52 +0200 Subject: [PATCH] Updated Admin API Reference (markdown) --- Admin-API-Reference.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Admin-API-Reference.md b/Admin-API-Reference.md index 7726a93..c9dce39 100644 --- a/Admin-API-Reference.md +++ b/Admin-API-Reference.md @@ -189,6 +189,24 @@ Example request: } ``` +Create a new stub mapping and save this to disk. Example request: +```js +{ + "Guid": "dae02a0d-8a33-46ed-aab0-afbecc864344", + "SaveToFile": true, + "Title": "the_filename", + "Request": { + "Url": "/example", + "Methods": [ + "get" + ] + }, + "Response": { + "BodyAsJson": { "result": "ok" } + } + } +``` + _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`