From 9c1df8a9b5b3ad3dca1e2df970be309a6e23c1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Wed, 23 Oct 2024 16:18:18 +0200 Subject: [PATCH] fix: api docs --- templates/lncalendar/_api_docs.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/templates/lncalendar/_api_docs.html b/templates/lncalendar/_api_docs.html index 57cf910..44b3870 100644 --- a/templates/lncalendar/_api_docs.html +++ b/templates/lncalendar/_api_docs.html @@ -19,7 +19,7 @@
Curl example
curl -X GET {{ request.base_url }}paywall/api/v1/paywalls -H - "X-Api-Key: {{ user.wallets[0].inkey }}" + "X-Api-Key: `invoice_key`" @@ -52,8 +52,7 @@
Curl example
>curl -X POST {{ request.base_url }}paywall/api/v1/paywalls -d '{"url": <string>, "memo": <string>, "description": <string>, "amount": <integer>, "remembers": - <boolean>}' -H "Content-type: application/json" -H "X-Api-Key: - {{ user.wallets[0].adminkey }}" + <boolean>}' -H "Content-type: application/json" -H "X-Api-Key: `admin_key`" @@ -133,14 +132,13 @@
Curl example
/paywall/api/v1/paywalls/<paywall_id>
Headers
- {"X-Api-Key": <admin_key>}
+ {"X-Api-Key": admin_key}
Returns 204 NO CONTENT
Curl example
curl -X DELETE {{ request.base_url - }}paywall/api/v1/paywalls/<paywall_id> -H "X-Api-Key: {{ - user.wallets[0].adminkey }}" + }}paywall/api/v1/paywalls/<paywall_id> -H "X-Api-Key: `admin_key`"