diff --git a/lnbits/extensions/lnurlp/templates/lnurlp/_api_docs.html b/lnbits/extensions/lnurlp/templates/lnurlp/_api_docs.html index d23242cd..8aff693f 100644 --- a/lnbits/extensions/lnurlp/templates/lnurlp/_api_docs.html +++ b/lnbits/extensions/lnurlp/templates/lnurlp/_api_docs.html @@ -17,8 +17,8 @@ [<pay_link_object>, ...]
Curl example
curl -X GET {{ request.url_root }}lnurlp/api/v1/links -H "X-Api-Key: - {{ g.user.wallets[0].inkey }}" + >curl -X GET {{ request.url_root }}api/v0/links -H "X-Api-Key: {{ + g.user.wallets[0].inkey }}" @@ -38,8 +38,8 @@ {"lnurl": <string>}
Curl example
curl -X GET {{ request.url_root }}lnurlp/api/v1/links/<pay_id> - -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" + >curl -X GET {{ request.url_root }}api/v1/links/<pay_id> -H + "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -63,10 +63,9 @@ {"lnurl": <string>}
Curl example
curl -X POST {{ request.url_root }}lnurlp/api/v1/links -d - '{"description": <string>, "amount": <integer>}' -H - "Content-type: application/json" -H "X-Api-Key: {{ - g.user.wallets[0].adminkey }}" + >curl -X POST {{ request.url_root }}api/v1/links -d '{"description": + <string>, "amount": <integer>}' -H "Content-type: + application/json" -H "X-Api-Key: {{ g.user.wallets[0].adminkey }}" @@ -93,8 +92,8 @@ {"lnurl": <string>}
Curl example
curl -X PUT {{ request.url_root }}lnurlp/api/v1/links/<pay_id> - -d '{"description": <string>, "amount": <integer>}' -H + >curl -X PUT {{ request.url_root }}api/v1/links/<pay_id> -d + '{"description": <string>, "amount": <integer>}' -H "Content-type: application/json" -H "X-Api-Key: {{ g.user.wallets[0].adminkey }}" @@ -120,9 +119,8 @@
Curl example
curl -X DELETE {{ request.url_root - }}lnurlp/api/v1/links/<pay_id> -H "X-Api-Key: {{ - g.user.wallets[0].adminkey }}" + >curl -X DELETE {{ request.url_root }}api/v1/links/<pay_id> -H + "X-Api-Key: {{ g.user.wallets[0].adminkey }}" diff --git a/lnbits/extensions/paywall/templates/paywall/_api_docs.html b/lnbits/extensions/paywall/templates/paywall/_api_docs.html index 56dbf564..3884c3b5 100644 --- a/lnbits/extensions/paywall/templates/paywall/_api_docs.html +++ b/lnbits/extensions/paywall/templates/paywall/_api_docs.html @@ -17,7 +17,7 @@ [<paywall_object>, ...]
Curl example
curl -X GET {{ request.url_root }}paywall/api/v1/paywalls -H + >curl -X GET {{ request.url_root }}api/v1/paywalls -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -48,7 +48,7 @@ >
Curl example
curl -X POST {{ request.url_root }}paywall/api/v1/paywalls -d + >curl -X POST {{ request.url_root }}api/v1/paywalls -d '{"url": <string>, "memo": <string>, "description": <string>, "amount": <integer>, "remembers": <boolean>}' -H "Content-type: application/json" -H "X-Api-Key: @@ -81,7 +81,7 @@
Curl example
curl -X POST {{ request.url_root - }}paywall/api/v1/paywalls/<paywall_id>/invoice -d '{"amount": + }}api/v1/paywalls/<paywall_id>/invoice -d '{"amount": <integer>}' -H "Content-type: application/json" @@ -112,7 +112,7 @@
Curl example
curl -X POST {{ request.url_root - }}paywall/api/v1/paywalls/<paywall_id>/check_invoice -d + }}api/v1/paywalls/<paywall_id>/check_invoice -d '{"payment_hash": <string>}' -H "Content-type: application/json" @@ -138,7 +138,7 @@
Curl example
curl -X DELETE {{ request.url_root - }}paywall/api/v1/paywalls/<paywall_id> -H "X-Api-Key: {{ + }}api/v1/paywalls/<paywall_id> -H "X-Api-Key: {{ g.user.wallets[0].adminkey }}" diff --git a/lnbits/extensions/tpos/templates/tpos/_api_docs.html b/lnbits/extensions/tpos/templates/tpos/_api_docs.html index aac366a2..6ceab728 100644 --- a/lnbits/extensions/tpos/templates/tpos/_api_docs.html +++ b/lnbits/extensions/tpos/templates/tpos/_api_docs.html @@ -17,7 +17,7 @@ [<tpos_object>, ...]
Curl example
curl -X GET {{ request.url_root }}tpos/api/v1/tposs -H "X-Api-Key: + >curl -X GET {{ request.url_root }}api/v1/tposs -H "X-Api-Key: <invoice_key>" @@ -42,7 +42,7 @@ >
Curl example
curl -X POST {{ request.url_root }}tpos/api/v1/tposs -d '{"name": + >curl -X POST {{ request.url_root }}api/v1/tposs -d '{"name": <string>, "currency": <string>}' -H "Content-type: application/json" -H "X-Api-Key: <admin_key>" @@ -69,8 +69,8 @@
Curl example
curl -X DELETE {{ request.url_root - }}tpos/api/v1/tposs/<tpos_id> -H "X-Api-Key: <admin_key>" + >curl -X DELETE {{ request.url_root }}api/v1/tposs/<tpos_id> -H + "X-Api-Key: <admin_key>" diff --git a/lnbits/extensions/usermanager/templates/usermanager/_api_docs.html b/lnbits/extensions/usermanager/templates/usermanager/_api_docs.html index 6a0980c9..7b1925a5 100644 --- a/lnbits/extensions/usermanager/templates/usermanager/_api_docs.html +++ b/lnbits/extensions/usermanager/templates/usermanager/_api_docs.html @@ -42,7 +42,7 @@ JSON list of users
Curl example
curl -X GET {{ request.url_root }}usermanager/api/v1/users -H + >curl -X GET {{ request.url_root }}api/v1/users -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -65,7 +65,7 @@
Curl example
curl -X GET {{ request.url_root - }}usermanager/api/v1/wallets/<user_id> -H "X-Api-Key: {{ + }}api/v1/wallets/<user_id> -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -88,7 +88,7 @@
Curl example
curl -X GET {{ request.url_root - }}usermanager/api/v1/wallets<wallet_id> -H "X-Api-Key: {{ + }}api/v1/wallets<wallet_id> -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -128,7 +128,7 @@ >
Curl example
curl -X POST {{ request.url_root }}usermanager/api/v1/users -d + >curl -X POST {{ request.url_root }}api/v1/users -d '{"admin_id": "{{ g.user.id }}", "wallet_name": <string>, "user_name": <string>}' -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" -H "Content-type: application/json" @@ -165,7 +165,7 @@ >
Curl example
curl -X POST {{ request.url_root }}usermanager/api/v1/wallets -d + >curl -X POST {{ request.url_root }}api/v1/wallets -d '{"user_id": <string>, "wallet_name": <string>, "admin_id": "{{ g.user.id }}"}' -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" -H "Content-type: application/json" @@ -190,7 +190,7 @@
Curl example
curl -X DELETE {{ request.url_root - }}usermanager/api/v1/users/<user_id> -H "X-Api-Key: {{ + }}api/v1/users/<user_id> -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -208,7 +208,7 @@
Curl example
curl -X DELETE {{ request.url_root - }}usermanager/api/v1/wallets/<wallet_id> -H "X-Api-Key: {{ + }}api/v1/wallets/<wallet_id> -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -230,7 +230,7 @@ {"X-Api-Key": <string>}
Curl example
curl -X POST {{ request.url_root }}usermanager/api/v1/extensions -d + >curl -X POST {{ request.url_root }}api/v1/extensions -d '{"userid": <string>, "extension": <string>, "active": <integer>}' -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" -H "Content-type: application/json" diff --git a/lnbits/extensions/withdraw/templates/withdraw/_api_docs.html b/lnbits/extensions/withdraw/templates/withdraw/_api_docs.html index b87e3e3b..bc1aac2b 100644 --- a/lnbits/extensions/withdraw/templates/withdraw/_api_docs.html +++ b/lnbits/extensions/withdraw/templates/withdraw/_api_docs.html @@ -22,7 +22,7 @@ [<withdraw_link_object>, ...]
Curl example
curl -X GET {{ request.url_root }}withdraw/api/v1/links -H + >curl -X GET {{ request.url_root }}api/v1/links -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -50,7 +50,7 @@
Curl example
curl -X GET {{ request.url_root - }}withdraw/api/v1/links/<withdraw_id> -H "X-Api-Key: {{ + }}api/v1/links/<withdraw_id> -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" @@ -79,7 +79,7 @@ {"lnurl": <string>}
Curl example
curl -X POST {{ request.url_root }}withdraw/api/v1/links -d + >curl -X POST {{ request.url_root }}api/v1/links -d '{"title": <string>, "min_withdrawable": <integer>, "max_withdrawable": <integer>, "uses": <integer>, "wait_time": <integer>, "is_unique": <boolean>}' -H @@ -116,7 +116,7 @@
Curl example
curl -X PUT {{ request.url_root - }}withdraw/api/v1/links/<withdraw_id> -d '{"title": + }}api/v1/links/<withdraw_id> -d '{"title": <string>, "min_withdrawable": <integer>, "max_withdrawable": <integer>, "uses": <integer>, "wait_time": <integer>, "is_unique": <boolean>}' -H @@ -146,7 +146,7 @@
Curl example
curl -X DELETE {{ request.url_root - }}withdraw/api/v1/links/<withdraw_id> -H "X-Api-Key: {{ + }}api/v1/links/<withdraw_id> -H "X-Api-Key: {{ g.user.wallets[0].adminkey }}"