|
@ -8,20 +8,20 @@ |
|
|
group="api" |
|
|
group="api" |
|
|
dense |
|
|
dense |
|
|
expand-separator |
|
|
expand-separator |
|
|
label="List all withdraw links" |
|
|
label="List withdraw links" |
|
|
> |
|
|
> |
|
|
<q-card> |
|
|
<q-card> |
|
|
<q-card-section> |
|
|
<q-card-section> |
|
|
<code |
|
|
<code |
|
|
><span class="text-light-blue">GET</span> /withdraw/api/v1/links</code |
|
|
><span class="text-blue">GET</span> /withdraw/api/v1/links</code |
|
|
> |
|
|
> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<code>{"X-Api-Key": <invoice_key>}</code><br /> |
|
|
<code>{"X-Api-Key": <invoice_key>}</code><br /> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Body (application/json)</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Body (application/json)</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none"> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none"> |
|
|
Returns 201 CREATED (application/json) |
|
|
Returns 200 OK (application/json) |
|
|
</h5> |
|
|
</h5> |
|
|
<code>{"lnurl": <string>}</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 }}withdraw/api/v1/links -H |
|
@ -34,13 +34,13 @@ |
|
|
group="api" |
|
|
group="api" |
|
|
dense |
|
|
dense |
|
|
expand-separator |
|
|
expand-separator |
|
|
label="List specific withdraw link" |
|
|
label="Get a withdraw link" |
|
|
> |
|
|
> |
|
|
<q-card> |
|
|
<q-card> |
|
|
<q-card-section> |
|
|
<q-card-section> |
|
|
<code |
|
|
<code |
|
|
><span class="text-light-blue">GET</span> |
|
|
><span class="text-blue">GET</span> |
|
|
/withdraw/api/v1/links/<LNURL_id></code |
|
|
/withdraw/api/v1/links/<withdraw_id></code |
|
|
> |
|
|
> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<code>{"X-Api-Key": <invoice_key>}</code><br /> |
|
|
<code>{"X-Api-Key": <invoice_key>}</code><br /> |
|
@ -52,7 +52,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/<LNURL_id> -H "X-Api-Key: {{ |
|
|
}}withdraw/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> |
|
@ -67,7 +67,7 @@ |
|
|
<q-card> |
|
|
<q-card> |
|
|
<q-card-section> |
|
|
<q-card-section> |
|
|
<code |
|
|
<code |
|
|
><span class="text-light-green">POST</span> |
|
|
><span class="text-green">POST</span> |
|
|
/withdraw/api/v1/links</code |
|
|
/withdraw/api/v1/links</code |
|
|
> |
|
|
> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
@ -103,7 +103,7 @@ |
|
|
<q-card> |
|
|
<q-card> |
|
|
<q-card-section> |
|
|
<q-card-section> |
|
|
<code |
|
|
<code |
|
|
><span class="text-light-blue">PUT</span> |
|
|
><span class="text-green">PUT</span> |
|
|
/withdraw/api/v1/links/<withdraw_id></code |
|
|
/withdraw/api/v1/links/<withdraw_id></code |
|
|
> |
|
|
> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
@ -115,7 +115,7 @@ |
|
|
"wait_time": <integer>, "is_unique": <boolean>}</code |
|
|
"wait_time": <integer>, "is_unique": <boolean>}</code |
|
|
> |
|
|
> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none"> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none"> |
|
|
Returns 201 CREATED (application/json) |
|
|
Returns 200 OK (application/json) |
|
|
</h5> |
|
|
</h5> |
|
|
<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> |
|
@ -141,13 +141,13 @@ |
|
|
<q-card> |
|
|
<q-card> |
|
|
<q-card-section> |
|
|
<q-card-section> |
|
|
<code |
|
|
<code |
|
|
><span class="text-light-green">DELETE</span> |
|
|
><span class="text-pink">DELETE</span> |
|
|
/withdraw/api/v1/links/<withdraw_id></code |
|
|
/withdraw/api/v1/links/<withdraw_id></code |
|
|
> |
|
|
> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<code>{"X-Api-Key": <admin_key>}</code><br /> |
|
|
<code>{"X-Api-Key": <admin_key>}</code><br /> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Returns 201 NO_CONTENT</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Returns 204 NO CONTENT</h5> |
|
|
<code>{"lnurl": <string>}</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 |
|
|