From a147c43a97177d1f0f0d67c3df8861b9d2bb0f3d Mon Sep 17 00:00:00 2001 From: ton Date: Wed, 30 Jun 2021 14:03:16 +0200 Subject: [PATCH] Fix for #238 Minor issues in API documentation of lnurlp extension https://github.com/lnbits/lnbits/issues/238 --- .../lnurlp/templates/lnurlp/_api_docs.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lnbits/extensions/lnurlp/templates/lnurlp/_api_docs.html b/lnbits/extensions/lnurlp/templates/lnurlp/_api_docs.html index 68cea8f8..d47ab1f1 100644 --- a/lnbits/extensions/lnurlp/templates/lnurlp/_api_docs.html +++ b/lnbits/extensions/lnurlp/templates/lnurlp/_api_docs.html @@ -7,7 +7,7 @@ - GET /api/v1/links + GET /lnurlp/api/v1/links
Headers
{"X-Api-Key": <invoice_key>}
Body (application/json)
@@ -27,7 +27,7 @@ GET /api/v1/links/<pay_id>GET /lnurlp/api/v1/links/<pay_id>
Headers
{"X-Api-Key": <invoice_key>}
@@ -52,11 +52,11 @@ > - POST /api/v1/links + POST /lnurlp/api/v1/links
Headers
{"X-Api-Key": <admin_key>}
Body (application/json)
- {"description": <string> "amount": <integer>} + {"description": <string> "amount": <integer> "max": <integer> "min": <integer> "comment_chars": <integer>}
Returns 201 CREATED (application/json)
@@ -64,7 +64,7 @@
Curl example
curl -X POST {{ request.url_root }}api/v1/links -d '{"description": - <string>, "amount": <integer>}' -H "Content-type: + <string>, "amount": <integer>, "max": <integer>, "min": <integer>, "comment_chars": <integer>}' -H "Content-type: application/json" -H "X-Api-Key: {{ g.user.wallets[0].adminkey }}"
@@ -80,7 +80,7 @@ PUT - /api/v1/links/<pay_id>
Headers
{"X-Api-Key": <admin_key>}
@@ -111,7 +111,7 @@ DELETE - /api/v1/links/<pay_id>
Headers
{"X-Api-Key": <admin_key>}