From e61a7846b8edee8262ddcdb450b4e3cb7eeb25e7 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Sun, 12 Feb 2017 09:56:51 +0100 Subject: [PATCH] Updated Admin API Reference (markdown) --- Admin-API-Reference.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Admin-API-Reference.md b/Admin-API-Reference.md index 6fce782..a54cfe0 100644 --- a/Admin-API-Reference.md +++ b/Admin-API-Reference.md @@ -11,17 +11,17 @@ The following interfaces are supported: The mappings defined in the mock service. * `GET /__admin/mappings` --> Gets all defined mappings * `POST /__admin/mappings` --> Create a new stub mapping -* `DELETE /__admin/mappings` --> Delete all stub mappings +* `DELETE /__admin/mappings` or `POST /__admin/mappings/reset` --> Delete all stub mappings * `GET /__admin/mappings/{guid}` --> Get a single stub mapping * `PUT /__admin/mappings/{guid}` --> Update a stub mapping * `DELETE /__admin/mappings/{guid}` --> Delete a single stub mapping +* `POST /__admin/mappings/save` --> Save all persistent stub mappings to the backing store ## /__admin/requests Logged requests and responses received by the mock service. * `GET /__admin/requests` --> Get received requests -* `DELETE /__admin/requests` --> Delete all received requests +* `DELETE /__admin/requests` or `POST /__admin/requests/reset` --> Delete all received requests * `GET /__admin/requests/{guid}` --> Get a single request -* `POST /__admin/requests/reset` --> TODO * `POST /__admin/requests/count` --> TODO * `POST /__admin/requests/find` --> TODO * `GET /__admin/requests/unmatched` --> TODO @@ -242,6 +242,9 @@ Example request ### `DELETE /__admin/mappings/{guid}` Delete a single stub mapping. +### `POST /__admin/mappings/save` +Save all persistent stub mappings to the backing store + ## /__admin/requests Logged requests and responses received by the mock service.