Updated Admin API Reference (markdown)

Stef Heyenrath
2019-06-17 19:36:52 +02:00
parent fbaf1fbe45
commit 9d185c1227

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