From 4f55b335959097918c35c1b0e27ae6ec59e5ee71 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 24 Aug 2024 22:00:17 -0700 Subject: update api samples --- src/lib/samples.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/lib/samples.js b/src/lib/samples.js index 85a85ef8..17e4f4c8 100644 --- a/src/lib/samples.js +++ b/src/lib/samples.js @@ -32,25 +32,12 @@ export default { "amount": 5000, "address": "bc1q3unh97w4rmelflrm2hvdwz37d8kray3vn4d5ca" }'`, - internal: `HASH=$(curl "${api}/invoice" - -H "content-type: application/json" - -H "Authorization: Bearer $token" - -d '{ - "invoice": { - "amount": 1000, - "type": "lightning" - }, - "user": { - "username": "alice" - } - }' | jq -r '.hash'); - - curl "${api}/payments" + internal: `curl "${api}/send" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "amount": 5000, - "hash": $HASH + "username": "alice" }'`, rates: `curl "${api}/rates" -H "content-type: application/json" -- cgit v1.2.3