Skip to content

Commit 775f5cb

Browse files
author
fbock
committed
change mockoon api endpoints
1 parent 821e4d3 commit 775f5cb

File tree

2 files changed

+72
-2
lines changed

2 files changed

+72
-2
lines changed

docs/TapTrade_obs/.obsidian/workspace.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"file": "Research/Trade Pipelines/new concepts/concept locking script 1.canvas",
1717
"viewState": {
1818
"x": 31,
19-
"y": -256.4238119356301,
19+
"y": 52.90863555471327,
2020
"zoom": -0.4572735104698888
2121
}
2222
}
@@ -153,7 +153,6 @@
153153
"lastOpenFiles": [
154154
"Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
155155
"Research/Trade Pipelines/new concepts/concept locking script 1.canvas",
156-
"Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
157156
"Research/Bitcoin fundamentals/Knowledge sources.md",
158157
"assets/ptlc2.png",
159158
"assets/ptlc.png",

taptrade_api_mockoon.json

+71
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,25 @@
6262
"default": true,
6363
"crudKey": "id",
6464
"callbacks": []
65+
},
66+
{
67+
"uuid": "f652991e-478b-43b7-8f6f-810308e54457",
68+
"body": "{}",
69+
"latency": 0,
70+
"statusCode": 406,
71+
"label": "In case bond is invalid",
72+
"headers": [],
73+
"bodyType": "INLINE",
74+
"filePath": "",
75+
"databucketID": "",
76+
"sendFileAsBody": false,
77+
"rules": [],
78+
"rulesOperator": "OR",
79+
"disableTemplating": false,
80+
"fallbackTo404": false,
81+
"default": false,
82+
"crudKey": "id",
83+
"callbacks": []
6584
}
6685
],
6786
"responseMode": null
@@ -248,6 +267,54 @@
248267
}
249268
],
250269
"responseMode": null
270+
},
271+
{
272+
"uuid": "99b210a0-8919-44b4-96a7-91eee7aa0a4b",
273+
"type": "http",
274+
"documentation": "Gets polled when waiting on the other party to take action on something. Returns 200 if ready, 204 if not ready.",
275+
"method": "post",
276+
"endpoint": "poll-escrow-confirmation",
277+
"responses": [
278+
{
279+
"uuid": "2cb56467-1055-4df1-b379-06b61548a923",
280+
"body": "",
281+
"latency": 0,
282+
"statusCode": 204,
283+
"label": "Returned if one party has to take action to continue",
284+
"headers": [],
285+
"bodyType": "INLINE",
286+
"filePath": "",
287+
"databucketID": "",
288+
"sendFileAsBody": false,
289+
"rules": [],
290+
"rulesOperator": "OR",
291+
"disableTemplating": false,
292+
"fallbackTo404": false,
293+
"default": true,
294+
"crudKey": "id",
295+
"callbacks": []
296+
},
297+
{
298+
"uuid": "90dbb065-f717-491d-a88e-9f767cdaba30",
299+
"body": "{}",
300+
"latency": 0,
301+
"statusCode": 200,
302+
"label": "Returned if trade can continue",
303+
"headers": [],
304+
"bodyType": "INLINE",
305+
"filePath": "",
306+
"databucketID": "",
307+
"sendFileAsBody": false,
308+
"rules": [],
309+
"rulesOperator": "OR",
310+
"disableTemplating": false,
311+
"fallbackTo404": false,
312+
"default": false,
313+
"crudKey": "id",
314+
"callbacks": []
315+
}
316+
],
317+
"responseMode": null
251318
}
252319
],
253320
"rootChildren": [
@@ -278,6 +345,10 @@
278345
{
279346
"type": "route",
280347
"uuid": "34bda159-89cf-453c-bf5c-fa532b35f202"
348+
},
349+
{
350+
"type": "route",
351+
"uuid": "99b210a0-8919-44b4-96a7-91eee7aa0a4b"
281352
}
282353
],
283354
"proxyMode": false,

0 commit comments

Comments
 (0)