add offertakenrequest route to mockoon

This commit is contained in:
fbock
2024-06-13 17:23:07 +02:00
parent 871ab78062
commit c1ab3b5767
3 changed files with 75 additions and 19 deletions

View File

@ -17,6 +17,6 @@
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 5.514946953973566,
"scale": 4.795555270105169,
"close": true
}

View File

@ -4,18 +4,21 @@
"type": "split",
"children": [
{
"id": "9151bc6da6fbbb91",
"id": "3311294fa81f4fbe",
"type": "tabs",
"children": [
{
"id": "bdb9fd88a01a8909",
"id": "98e8706e39a96828",
"type": "leaf",
"state": {
"type": "markdown",
"type": "canvas",
"state": {
"file": "Research/Bitcoin fundamentals/Knowledge sources.md",
"mode": "source",
"source": false
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"viewState": {
"x": 292.40347373796766,
"y": 677.9895725137358,
"zoom": -0.35245157877604133
}
}
}
}
@ -85,7 +88,7 @@
"state": {
"type": "backlink",
"state": {
"file": "Research/Bitcoin fundamentals/Knowledge sources.md",
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -102,7 +105,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "Research/Bitcoin fundamentals/Knowledge sources.md",
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
@ -125,7 +128,7 @@
"state": {
"type": "outline",
"state": {
"file": "Research/Bitcoin fundamentals/Knowledge sources.md"
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas"
}
}
}
@ -146,23 +149,24 @@
"command-palette:Open command palette": false
}
},
"active": "bdb9fd88a01a8909",
"active": "98e8706e39a96828",
"lastOpenFiles": [
"Research/Trade Pipelines/new concepts/concept locking script 1.canvas",
"Research/Bitcoin fundamentals/Signature and Flags.canvas",
"Research/Bitcoin fundamentals/Knowledge sources.md",
"Research/Implementation/CLI demonstrator architecture/demonstrator architecture.canvas",
"Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"Research/Implementation/Libraries.md",
"Research/Implementation/BDK.md",
"Research/Implementation/UI ideas.canvas",
"Research/Trade Pipelines/Existing research.md",
"Research/Bitcoin fundamentals/Taproot output structure.canvas",
"Research/Bitcoin fundamentals/Spending Taproot UTXOs.md",
"Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"Research/Trade Pipelines/new concepts/concept locking script 1.canvas",
"Research/Bitcoin fundamentals/Knowledge sources.md",
"assets/Pasted image 20240611120722.png",
"assets/Pasted image 20240611105421.png",
"assets/ptlc2.png",
"assets/ptlc.png",
"Research/Trade Pipelines/current trade flow.canvas",
"Research/Implementation/Libraries.md",
"Research/Bitcoin fundamentals/Signature and Flags.canvas",
"Research/Implementation/CLI demonstrator architecture/demonstrator architecture.canvas",
"Research/Implementation/UI ideas.canvas",
"Research/Trade Pipelines/Existing research.md",
"Research/Implementation/CLI demonstrator architecture",
"Research/Trade Pipelines/new concepts/Untitled.md"
]

View File

@ -65,6 +65,54 @@
}
],
"responseMode": null
},
{
"uuid": "ad35d2da-7b97-4a27-9693-ee42deef7d45",
"type": "http",
"documentation": "",
"method": "post",
"endpoint": "request-offer-status",
"responses": [
{
"uuid": "03cbf2fb-b431-44bb-b19f-a4302118de52",
"body": "{\n \"trade_psbt_hex_to_sign\": \"DEADBEEF\",\n}",
"latency": 0,
"statusCode": 200,
"label": "Returned of the offer has been taken",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true,
"crudKey": "id",
"callbacks": []
},
{
"uuid": "9ada9097-97e3-40c3-b0cf-d0eec3587027",
"body": "{}",
"latency": 0,
"statusCode": 204,
"label": "Returned if the requested offer is not yet taken",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id",
"callbacks": []
}
],
"responseMode": null
}
],
"rootChildren": [
@ -75,6 +123,10 @@
{
"type": "route",
"uuid": "bb20e299-c097-4555-aa5c-7c2975e65c48"
},
{
"type": "route",
"uuid": "ad35d2da-7b97-4a27-9693-ee42deef7d45"
}
],
"proxyMode": false,