From ba3e4991d553b911d8f25f5a9b040e3426582428 Mon Sep 17 00:00:00 2001 From: nicolae-stroncea <39338488+nicolae-stroncea@users.noreply.github.com> Date: Wed, 16 Nov 2022 16:55:34 -0500 Subject: [PATCH] Adding example of using the API endpoint --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index b8bf9a76..a0354e49 100644 --- a/README.md +++ b/README.md @@ -504,6 +504,13 @@ All endpoints are JSON. - **GET /version** - Returns the server version number - **GET /metrics** - Returns Prometheus-compatible metrics +##### Example using the API Endpoints + +```bash +$ curl -X POST -H "Content-Type: application/json" -d '{"enabled": false}' localhost:26913/proxies/shopify_development_memcached +{"name":"shopify_development_memcached","listen":"127.0.0.1:20915","upstream":"localhost:62070","enabled":false,"toxics":[]}% +``` + #### Populating Proxies Proxies can be added and configured in bulk using the `/populate` endpoint. This is done by