From 440add3d963cac7c0e8547067295075619c44d72 Mon Sep 17 00:00:00 2001
From: Dustin Deus
Date: Sat, 24 Apr 2021 15:39:39 +0200
Subject: [PATCH] improve readme
---
README.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 8dd35a7..fefd231 100644
--- a/README.md
+++ b/README.md
@@ -90,10 +90,6 @@ POST - `/schema/validate` Validate schema between provided and latest schemas.
-### Monitoring
-
-GET - `/health` healthcheck endpoint.
-
### Persisted Queries
GET - `/persisted_query?key=foo` Looks up persisted query from KV Storage.
@@ -104,7 +100,7 @@ POST - `/persisted_query` Adds persisted query to the KV Storage.
Example Request
-```json
+```jsonc
{
"key": "apq:foo",
"query": "query",
@@ -131,6 +127,10 @@ DELETE - `/persisted_query` Deletes persisted query from KV Storage.
+### Monitoring
+
+GET - `/health` healthcheck endpoint.
+
### Authentication
Clients authenticate via [`Basic-Auth`](https://en.wikipedia.org/wiki/Basic_access_authentication). You have to set the cloudflare secret `ALLOWED_CLIENT_SECRETS=secret1,secret2`. The secret is used as user and pass combination.