mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 22:25:47 +01:00
parent
304ad3035b
commit
405a2f0776
1 changed files with 3 additions and 5 deletions
|
@ -176,18 +176,16 @@
|
||||||
><span class="text-light-green">POST</span>
|
><span class="text-light-green">POST</span>
|
||||||
/api/v1/payments/decode</code
|
/api/v1/payments/decode</code
|
||||||
>
|
>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5>
|
|
||||||
<code>{"X-Api-Key": "<i>{{ wallet.inkey }}</i>"}</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>
|
||||||
<code>{"invoice": <string>}</code>
|
<code>{"data": <string>}</code>
|
||||||
<h5 class="text-caption q-mt-sm q-mb-none">
|
<h5 class="text-caption q-mt-sm q-mb-none">
|
||||||
Returns 200 (application/json)
|
Returns 200 (application/json)
|
||||||
</h5>
|
</h5>
|
||||||
<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.base_url }}api/v1/payments/decode -d
|
>curl -X POST {{ request.base_url }}api/v1/payments/decode -d
|
||||||
'{"data": <bolt11/lnurl, string>}' -H "X-Api-Key:
|
'{"data": <bolt11/lnurl, string>}' -H "Content-type:
|
||||||
<i>{{ wallet.inkey }}</i>" -H "Content-type: application/json"</code
|
application/json"</code
|
||||||
>
|
>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
Loading…
Add table
Reference in a new issue