mirror of
https://github.com/RoboSats/taptrade-core.git
synced 2025-07-22 10:43:26 +00:00
add mockoon api mock
This commit is contained in:
BIN
docs/TapTrade_obs/Research/sighash_flags.webp
Executable file
BIN
docs/TapTrade_obs/Research/sighash_flags.webp
Executable file
Binary file not shown.
After Width: | Height: | Size: 6.7 KiB |
92
taptrade_api_mockoon.json
Normal file
92
taptrade_api_mockoon.json
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
{
|
||||||
|
"uuid": "7f0e6404-7297-4249-acc9-aabb8c8257ca",
|
||||||
|
"lastMigration": 32,
|
||||||
|
"name": "Taptrade api",
|
||||||
|
"endpointPrefix": "",
|
||||||
|
"latency": 0,
|
||||||
|
"port": 3001,
|
||||||
|
"hostname": "",
|
||||||
|
"folders": [],
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"uuid": "7cdc672a-d43a-41f2-a10b-630306bf1d03",
|
||||||
|
"type": "http",
|
||||||
|
"documentation": "Receives OrderRequest Json and returns OfferCreationResponse on success",
|
||||||
|
"method": "post",
|
||||||
|
"endpoint": "create-offer",
|
||||||
|
"responses": [
|
||||||
|
{
|
||||||
|
"uuid": "a746f8e0-fdda-4086-b3a3-1bf65ba7bdb3",
|
||||||
|
"body": "{\n \"locking_address\": \"bc1xxx\",\n \"locking_amount\": 69420\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": [
|
||||||
|
{
|
||||||
|
"type": "route",
|
||||||
|
"uuid": "7cdc672a-d43a-41f2-a10b-630306bf1d03"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"proxyMode": false,
|
||||||
|
"proxyHost": "",
|
||||||
|
"proxyRemovePrefix": false,
|
||||||
|
"tlsOptions": {
|
||||||
|
"enabled": false,
|
||||||
|
"type": "CERT",
|
||||||
|
"pfxPath": "",
|
||||||
|
"certPath": "",
|
||||||
|
"keyPath": "",
|
||||||
|
"caPath": "",
|
||||||
|
"passphrase": ""
|
||||||
|
},
|
||||||
|
"cors": true,
|
||||||
|
"headers": [
|
||||||
|
{
|
||||||
|
"key": "Content-Type",
|
||||||
|
"value": "application/json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "Access-Control-Allow-Origin",
|
||||||
|
"value": "*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "Access-Control-Allow-Methods",
|
||||||
|
"value": "GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "Access-Control-Allow-Headers",
|
||||||
|
"value": "Content-Type, Origin, Accept, Authorization, Content-Length, X-Requested-With"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"proxyReqHeaders": [
|
||||||
|
{
|
||||||
|
"key": "",
|
||||||
|
"value": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"proxyResHeaders": [
|
||||||
|
{
|
||||||
|
"key": "",
|
||||||
|
"value": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"data": [],
|
||||||
|
"callbacks": []
|
||||||
|
}
|
Reference in New Issue
Block a user