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`