Skip to content

Commit

Permalink
fix: api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Oct 23, 2024
1 parent 93daab5 commit 9c1df8a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions templates/lncalendar/_api_docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h5 class="text-caption q-mt-sm q-mb-none">
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
<code
>curl -X GET {{ request.base_url }}paywall/api/v1/paywalls -H
"X-Api-Key: {{ user.wallets[0].inkey }}"
"X-Api-Key: `invoice_key`"
</code>
</q-card-section>
</q-card>
Expand Down Expand Up @@ -52,8 +52,7 @@ <h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
>curl -X POST {{ request.base_url }}paywall/api/v1/paywalls -d
'{"url": &lt;string&gt;, "memo": &lt;string&gt;, "description":
&lt;string&gt;, "amount": &lt;integer&gt;, "remembers":
&lt;boolean&gt;}' -H "Content-type: application/json" -H "X-Api-Key:
{{ user.wallets[0].adminkey }}"
&lt;boolean&gt;}' -H "Content-type: application/json" -H "X-Api-Key: `admin_key`"
</code>
</q-card-section>
</q-card>
Expand Down Expand Up @@ -133,14 +132,13 @@ <h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
/paywall/api/v1/paywalls/&lt;paywall_id&gt;</code
>
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5>
<code>{"X-Api-Key": &lt;admin_key&gt;}</code><br />
<code>{"X-Api-Key": admin_key}</code><br />
<h5 class="text-caption q-mt-sm q-mb-none">Returns 204 NO CONTENT</h5>
<code></code>
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5>
<code
>curl -X DELETE {{ request.base_url
}}paywall/api/v1/paywalls/&lt;paywall_id&gt; -H "X-Api-Key: {{
user.wallets[0].adminkey }}"
}}paywall/api/v1/paywalls/&lt;paywall_id&gt; -H "X-Api-Key: `admin_key`"
</code>
</q-card-section>
</q-card>
Expand Down

0 comments on commit 9c1df8a

Please sign in to comment.