taker api

This commit is contained in:
fbock
2024-06-14 13:55:30 +02:00
parent fbcafba6f9
commit a5d3625f0d
2 changed files with 69 additions and 3 deletions

View File

@ -15,9 +15,9 @@
"state": {
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"viewState": {
"x": 292.40347373796766,
"y": 677.9895725137358,
"zoom": -0.35245157877604133
"x": 137.064506277392,
"y": 733.2796866482448,
"zoom": 0.27410685221354214
}
}
}

View File

@ -113,6 +113,64 @@
}
],
"responseMode": null
},
{
"uuid": "dc8a8111-6539-4529-8a95-ea35c9ac2c0f",
"type": "http",
"documentation": "Fetch all available offers for given conditions",
"method": "post",
"endpoint": "fetch-available-offers",
"responses": [
{
"uuid": "165d4f04-12d3-45e2-a437-9da5f0a04d2f",
"body": " \"offers\": [\n {\n \"amount_sat\": 1000,\n \"offer_id_hex\": \"abc123\"\n },\n {\n \"amount_sat\": 2000,\n \"offer_id_hex\": \"def456\"\n }\n ]",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true,
"crudKey": "id",
"callbacks": []
}
],
"responseMode": null
},
{
"uuid": "ee4bb798-c787-43ae-9a34-64568ba8c31b",
"type": "http",
"documentation": "",
"method": "post",
"endpoint": "take-offer",
"responses": [
{
"uuid": "e527cfa3-eaf6-4972-882b-b723084dfe49",
"body": "{\n \"bond_address\": \"tb1pfdvgfzwp8vhmelpv8w9kezz7nsmxw68jz6yehgze6mzx0t6r9t2qv9ynmm\",\n \"locking_amount\": 123456\n}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true,
"crudKey": "id",
"callbacks": []
}
],
"responseMode": null
}
],
"rootChildren": [
@ -127,6 +185,14 @@
{
"type": "route",
"uuid": "ad35d2da-7b97-4a27-9693-ee42deef7d45"
},
{
"type": "route",
"uuid": "dc8a8111-6539-4529-8a95-ea35c9ac2c0f"
},
{
"type": "route",
"uuid": "ee4bb798-c787-43ae-9a34-64568ba8c31b"
}
],
"proxyMode": false,