From 89a75ab64112c016468348034e3a682aa770da8e Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:49:46 +0000 Subject: [PATCH] Hide admin keys in curl example (#2753) --- lnbits/core/templates/core/_api_docs.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/lnbits/core/templates/core/_api_docs.html b/lnbits/core/templates/core/_api_docs.html index 6f4cc9405..2e72dc9ff 100644 --- a/lnbits/core/templates/core/_api_docs.html +++ b/lnbits/core/templates/core/_api_docs.html @@ -144,9 +144,23 @@ > - POST /api/v1/payments + POST /api/v1/payments (reveal + admin keys + )
Headers
- {"X-Api-Key": "{{ wallet.adminkey }}"} + {"X-Api-Key": ""}
Body (application/json)
{"out": true, "bolt11": <string>}
@@ -157,8 +171,8 @@ curl -X POST api/v1/payments -d '{"out": true, "bolt11": <string>}' -H "X-Api-Key: - " -H "Content-type: - application/json"" -H "Content-type: application/json"