change mockoon api endpoints

This commit is contained in:
fbock
2024-07-02 10:43:55 +02:00
parent 821e4d3974
commit 775f5cbe61
2 changed files with 72 additions and 2 deletions

View File

@ -16,7 +16,7 @@
"file": "Research/Trade Pipelines/new concepts/concept locking script 1.canvas",
"viewState": {
"x": 31,
"y": -256.4238119356301,
"y": 52.90863555471327,
"zoom": -0.4572735104698888
}
}
@ -153,7 +153,6 @@
"lastOpenFiles": [
"Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"Research/Trade Pipelines/new concepts/concept locking script 1.canvas",
"Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"Research/Bitcoin fundamentals/Knowledge sources.md",
"assets/ptlc2.png",
"assets/ptlc.png",

View File

@ -62,6 +62,25 @@
"default": true,
"crudKey": "id",
"callbacks": []
},
{
"uuid": "f652991e-478b-43b7-8f6f-810308e54457",
"body": "{}",
"latency": 0,
"statusCode": 406,
"label": "In case bond is invalid",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id",
"callbacks": []
}
],
"responseMode": null
@ -248,6 +267,54 @@
}
],
"responseMode": null
},
{
"uuid": "99b210a0-8919-44b4-96a7-91eee7aa0a4b",
"type": "http",
"documentation": "Gets polled when waiting on the other party to take action on something. Returns 200 if ready, 204 if not ready.",
"method": "post",
"endpoint": "poll-escrow-confirmation",
"responses": [
{
"uuid": "2cb56467-1055-4df1-b379-06b61548a923",
"body": "",
"latency": 0,
"statusCode": 204,
"label": "Returned if one party has to take action to continue",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true,
"crudKey": "id",
"callbacks": []
},
{
"uuid": "90dbb065-f717-491d-a88e-9f767cdaba30",
"body": "{}",
"latency": 0,
"statusCode": 200,
"label": "Returned if trade can continue",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id",
"callbacks": []
}
],
"responseMode": null
}
],
"rootChildren": [
@ -278,6 +345,10 @@
{
"type": "route",
"uuid": "34bda159-89cf-453c-bf5c-fa532b35f202"
},
{
"type": "route",
"uuid": "99b210a0-8919-44b4-96a7-91eee7aa0a4b"
}
],
"proxyMode": false,