mirror of https://github.com/lukechilds/lnbits.git
Arc
5 years ago
committed by
GitHub
1 changed files with 53 additions and 0 deletions
@ -0,0 +1,53 @@ |
|||
<q-expansion-item |
|||
group="extras" |
|||
icon="swap_vertical_circle" |
|||
label="API info" |
|||
:content-inset-level="0.5" |
|||
> |
|||
<q-expansion-item group="api" dense expand-separator label="List all users TPoS"> |
|||
<q-card> |
|||
<q-card-section> |
|||
<code><span class="text-light-blue">GET</span> /tpos/api/v1/tposs</code> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|||
<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">Returns 201 CREATED (application/json)</h5> |
|||
<code>{"lnurl": <string>}</code> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5> |
|||
<code>curl -X GET http://127.0.0.1:5000/tpos/api/v1/tposs -H "X-Api-Key: <invoice_key>" </code> |
|||
</q-card-section> |
|||
</q-card> |
|||
</q-expansion-item> |
|||
<q-expansion-item group="api" dense expand-separator label="Create a TPoS"> |
|||
<q-card> |
|||
<q-card-section> |
|||
<code><span class="text-light-green">POST</span> /tpos/api/v1/tposs</code> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|||
<code>{"X-Api-Key": <invoice_key>}</code><br /> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Body (application/json)</h5> |
|||
<code>{"name": <string>, "currency": <string*ie USD*>}</code> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Returns 201 CREATED (application/json)</h5> |
|||
<code>{"currency": <string>, "id": <string>, "name": <string>, "wallet": <string>}</code> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5> |
|||
<code>curl -X POST http://127.0.0.1:5000/tpos/api/v1/tposs -d '{"name": <string>, "currency": <string>}' -H "Content-type: application/json" -H "X-Api-Key: <admin_key>" |
|||
</code> |
|||
</q-card-section> |
|||
</q-card> |
|||
</q-expansion-item> |
|||
|
|||
<q-expansion-item group="api" dense expand-separator label="Delete a TPoS" class="q-pb-md"> |
|||
<q-card> |
|||
<q-card-section> |
|||
<code><span class="text-light-green">DELETE</span> /tpos/api/v1/tposs/<tpos_id></code> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|||
<code>{"X-Api-Key": <admin_key>}</code><br /> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Returns 201 NO_CONTENT</h5> |
|||
<code></code> |
|||
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5> |
|||
<code>curl -X DELETE http://127.0.0.1:5000/withdraw/api/v1/links/<tpos_id> -H "X-Api-Key: <admin_key>" |
|||
</code> |
|||
|
|||
</q-card-section> |
|||
</q-card> |
|||
</q-expansion-item> |
|||
</q-expansion-item> |
Loading…
Reference in new issue