From 8f930b6d56477138b6941416b851b63800f5aea6 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 22 Sep 2020 12:59:54 +0200 Subject: [PATCH] Updated Admin API Reference (markdown) --- Admin-API-Reference.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Admin-API-Reference.md b/Admin-API-Reference.md index 5796df4..966c647 100644 --- a/Admin-API-Reference.md +++ b/Admin-API-Reference.md @@ -57,6 +57,16 @@ Logged requests and responses received by the mock service. * `GET /__admin/requests/unmatched` --> TODO * `GET /__admin/requests/unmatched/near-misses` --> TODO +### `POST /__admin/requests/find` +For example, this will return all requests that were performed to this specific path. +``` cmd +curl --location --request POST 'http://localhost:9999/__admin/requests/find' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "path": "/path/to/search/for" +} +``` + *** For some **example requests**, see this [PostMan Collection](https://www.getpostman.com/collections/b69dcea7ec19473bff1e) ***