diff --git a/lnbits/extensions/tpos/templates/tpos/_api_docs.html b/lnbits/extensions/tpos/templates/tpos/_api_docs.html new file mode 100644 index 0000000..b95da48 --- /dev/null +++ b/lnbits/extensions/tpos/templates/tpos/_api_docs.html @@ -0,0 +1,53 @@ + + + + + GET /tpos/api/v1/tposs +
Headers
+ {"X-Api-Key": <invoice_key>}
+
Body (application/json)
+
Returns 201 CREATED (application/json)
+ {"lnurl": <string>} +
Curl example
+ curl -X GET http://127.0.0.1:5000/tpos/api/v1/tposs -H "X-Api-Key: <invoice_key>" +
+
+
+ + + + POST /tpos/api/v1/tposs +
Headers
+ {"X-Api-Key": <invoice_key>}
+
Body (application/json)
+ {"name": <string>, "currency": <string*ie USD*>} +
Returns 201 CREATED (application/json)
+ {"currency": <string>, "id": <string>, "name": <string>, "wallet": <string>} +
Curl example
+ 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>" + +
+
+
+ + + + + DELETE /tpos/api/v1/tposs/<tpos_id> +
Headers
+ {"X-Api-Key": <admin_key>}
+
Returns 201 NO_CONTENT
+ +
Curl example
+ curl -X DELETE http://127.0.0.1:5000/withdraw/api/v1/links/<tpos_id> -H "X-Api-Key: <admin_key>" + + +
+
+
+