aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-27 19:28:09 -0800
committerAdam Soltys <[email protected]>2023-02-27 19:28:38 -0800
commitcc6bc08706dcbc657b76ddb07ee1c4bdb6107249 (patch)
tree564736410bb5862e84b747f3073a1b9904506187 /src/lib
parent92070178faefdfdb15635ceabe1101e08aebe9ef (diff)
downloadcoinos-ui-cc6bc08706dcbc657b76ddb07ee1c4bdb6107249.tar.gz
coinos-ui-cc6bc08706dcbc657b76ddb07ee1c4bdb6107249.zip
api docs
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/samples.js22
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" }'`
+};