diff options
| author | Adam Soltys <[email protected]> | 2023-02-27 19:28:09 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-27 19:28:38 -0800 |
| commit | 34bc1c031378f8333819f2b46fb74f46634fb639 (patch) | |
| tree | 564736410bb5862e84b747f3073a1b9904506187 /src/lib/samples.js | |
| parent | f55645af4c27d98927252a0af22b0f58f494b334 (diff) | |
| download | coinos-ui-34bc1c031378f8333819f2b46fb74f46634fb639.tar.gz coinos-ui-34bc1c031378f8333819f2b46fb74f46634fb639.zip | |
api docs
Diffstat (limited to 'src/lib/samples.js')
| -rw-r--r-- | src/lib/samples.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/samples.js b/src/lib/samples.js new file mode 100644 index 00000000..4af61822 --- /dev/null +++ b/src/lib/samples.js @@ -0,0 +1,22 @@ +export default { + register: `curl -s "https://coinos.io/api/register" -H "application/json" -d '{ + "username": "adam", + "password": "hunter2" +}'`, + login: `curl -s "https://coinos.io/api/login" -H "application/json" -d '{ + "username": "adam", + "password": "hunter2" +}'`, + invoice: `curl -s "https://coinos.io/api/invoice" + -H "application/json" + -H "Authorization: Bearer $token" + -d '{ + "invoice": { + "amount": 1000, + "type": "lightning", + "webhook": "https://example.com/payment/received", + "secret": "hunter2" + }, +}'`, + fetchInvoice: `curl -s "https://coinos.io/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" -H "application/json" }'` +}; |
