fix curl examples in extensions, path was duplicating the plugin names.
This commit is contained in:
parent
9c126696fc
commit
88eb8e0e78
5 changed files with 33 additions and 35 deletions
|
|
@ -17,8 +17,8 @@
|
||||||
<code>[<pay_link_object>, ...]</code>
|
<code>[<pay_link_object>, ...]</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X GET {{ request.url_root }}lnurlp/api/v1/links -H "X-Api-Key:
|
>curl -X GET {{ request.url_root }}api/v0/links -H "X-Api-Key: {{
|
||||||
{{ g.user.wallets[0].inkey }}"
|
g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
@ -38,8 +38,8 @@
|
||||||
<code>{"lnurl": <string>}</code>
|
<code>{"lnurl": <string>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X GET {{ request.url_root }}lnurlp/api/v1/links/<pay_id>
|
>curl -X GET {{ request.url_root }}api/v1/links/<pay_id> -H
|
||||||
-H "X-Api-Key: {{ g.user.wallets[0].inkey }}"
|
"X-Api-Key: {{ g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
@ -63,10 +63,9 @@
|
||||||
<code>{"lnurl": <string>}</code>
|
<code>{"lnurl": <string>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X POST {{ request.url_root }}lnurlp/api/v1/links -d
|
>curl -X POST {{ request.url_root }}api/v1/links -d '{"description":
|
||||||
'{"description": <string>, "amount": <integer>}' -H
|
<string>, "amount": <integer>}' -H "Content-type:
|
||||||
"Content-type: application/json" -H "X-Api-Key: {{
|
application/json" -H "X-Api-Key: {{ g.user.wallets[0].adminkey }}"
|
||||||
g.user.wallets[0].adminkey }}"
|
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
@ -93,8 +92,8 @@
|
||||||
<code>{"lnurl": <string>}</code>
|
<code>{"lnurl": <string>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X PUT {{ request.url_root }}lnurlp/api/v1/links/<pay_id>
|
>curl -X PUT {{ request.url_root }}api/v1/links/<pay_id> -d
|
||||||
-d '{"description": <string>, "amount": <integer>}' -H
|
'{"description": <string>, "amount": <integer>}' -H
|
||||||
"Content-type: application/json" -H "X-Api-Key: {{
|
"Content-type: application/json" -H "X-Api-Key: {{
|
||||||
g.user.wallets[0].adminkey }}"
|
g.user.wallets[0].adminkey }}"
|
||||||
</code>
|
</code>
|
||||||
|
|
@ -120,9 +119,8 @@
|
||||||
<code></code>
|
<code></code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X DELETE {{ request.url_root
|
>curl -X DELETE {{ request.url_root }}api/v1/links/<pay_id> -H
|
||||||
}}lnurlp/api/v1/links/<pay_id> -H "X-Api-Key: {{
|
"X-Api-Key: {{ g.user.wallets[0].adminkey }}"
|
||||||
g.user.wallets[0].adminkey }}"
|
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<code>[<paywall_object>, ...]</code>
|
<code>[<paywall_object>, ...]</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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 }}"
|
"X-Api-Key: {{ g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
>
|
>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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":
|
'{"url": <string>, "memo": <string>, "description":
|
||||||
<string>, "amount": <integer>, "remembers":
|
<string>, "amount": <integer>, "remembers":
|
||||||
<boolean>}' -H "Content-type: application/json" -H "X-Api-Key:
|
<boolean>}' -H "Content-type: application/json" -H "X-Api-Key:
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X POST {{ request.url_root
|
>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"
|
<integer>}' -H "Content-type: application/json"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -112,7 +112,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X POST {{ request.url_root
|
>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"
|
'{"payment_hash": <string>}' -H "Content-type: application/json"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -138,7 +138,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X DELETE {{ request.url_root
|
>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 }}"
|
g.user.wallets[0].adminkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<code>[<tpos_object>, ...]</code>
|
<code>[<tpos_object>, ...]</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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>"
|
<invoice_key>"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
>
|
>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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:
|
<string>, "currency": <string>}' -H "Content-type:
|
||||||
application/json" -H "X-Api-Key: <admin_key>"
|
application/json" -H "X-Api-Key: <admin_key>"
|
||||||
</code>
|
</code>
|
||||||
|
|
@ -69,8 +69,8 @@
|
||||||
<code></code>
|
<code></code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X DELETE {{ request.url_root
|
>curl -X DELETE {{ request.url_root }}api/v1/tposs/<tpos_id> -H
|
||||||
}}tpos/api/v1/tposs/<tpos_id> -H "X-Api-Key: <admin_key>"
|
"X-Api-Key: <admin_key>"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
<code>JSON list of users</code>
|
<code>JSON list of users</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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 }}"
|
"X-Api-Key: {{ g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X GET {{ request.url_root
|
>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 }}"
|
g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X GET {{ request.url_root
|
>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 }}"
|
g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
>
|
>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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>,
|
'{"admin_id": "{{ g.user.id }}", "wallet_name": <string>,
|
||||||
"user_name": <string>}' -H "X-Api-Key: {{
|
"user_name": <string>}' -H "X-Api-Key: {{
|
||||||
g.user.wallets[0].inkey }}" -H "Content-type: application/json"
|
g.user.wallets[0].inkey }}" -H "Content-type: application/json"
|
||||||
|
|
@ -165,7 +165,7 @@
|
||||||
>
|
>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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>,
|
'{"user_id": <string>, "wallet_name": <string>,
|
||||||
"admin_id": "{{ g.user.id }}"}' -H "X-Api-Key: {{
|
"admin_id": "{{ g.user.id }}"}' -H "X-Api-Key: {{
|
||||||
g.user.wallets[0].inkey }}" -H "Content-type: application/json"
|
g.user.wallets[0].inkey }}" -H "Content-type: application/json"
|
||||||
|
|
@ -190,7 +190,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X DELETE {{ request.url_root
|
>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 }}"
|
g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -208,7 +208,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X DELETE {{ request.url_root
|
>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 }}"
|
g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -230,7 +230,7 @@
|
||||||
<code>{"X-Api-Key": <string>}</code>
|
<code>{"X-Api-Key": <string>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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":
|
'{"userid": <string>, "extension": <string>, "active":
|
||||||
<integer>}' -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" -H
|
<integer>}' -H "X-Api-Key: {{ g.user.wallets[0].inkey }}" -H
|
||||||
"Content-type: application/json"
|
"Content-type: application/json"
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<code>[<withdraw_link_object>, ...]</code>
|
<code>[<withdraw_link_object>, ...]</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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 }}"
|
"X-Api-Key: {{ g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X GET {{ request.url_root
|
>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 }}"
|
g.user.wallets[0].inkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
<code>{"lnurl": <string>}</code>
|
<code>{"lnurl": <string>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>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>,
|
'{"title": <string>, "min_withdrawable": <integer>,
|
||||||
"max_withdrawable": <integer>, "uses": <integer>,
|
"max_withdrawable": <integer>, "uses": <integer>,
|
||||||
"wait_time": <integer>, "is_unique": <boolean>}' -H
|
"wait_time": <integer>, "is_unique": <boolean>}' -H
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X PUT {{ request.url_root
|
>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>,
|
<string>, "min_withdrawable": <integer>,
|
||||||
"max_withdrawable": <integer>, "uses": <integer>,
|
"max_withdrawable": <integer>, "uses": <integer>,
|
||||||
"wait_time": <integer>, "is_unique": <boolean>}' -H
|
"wait_time": <integer>, "is_unique": <boolean>}' -H
|
||||||
|
|
@ -146,7 +146,7 @@
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
|
||||||
<code
|
<code
|
||||||
>curl -X DELETE {{ request.url_root
|
>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 }}"
|
g.user.wallets[0].adminkey }}"
|
||||||
</code>
|
</code>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue