diff options
| author | Adam Soltys <[email protected]> | 2024-08-24 22:00:17 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-24 22:00:17 -0700 |
| commit | 4f55b335959097918c35c1b0e27ae6ec59e5ee71 (patch) | |
| tree | 3b29dc512521d803978cd93cbd60e20fc7fbd8e0 /src/lib/samples.js | |
| parent | c309fc1577ec1ef87e3ae04065c55a598b749d06 (diff) | |
| download | coinos-ui-4f55b335959097918c35c1b0e27ae6ec59e5ee71.tar.gz coinos-ui-4f55b335959097918c35c1b0e27ae6ec59e5ee71.zip | |
update api samples
Diffstat (limited to 'src/lib/samples.js')
| -rw-r--r-- | src/lib/samples.js | 17 |
1 files changed, 2 insertions, 15 deletions
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" |
