add mockoon api mock

This commit is contained in:
fbock
2024-06-05 18:56:57 +02:00
parent 55cba72eec
commit d079def2a2
2 changed files with 92 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

92
taptrade_api_mockoon.json Normal file
View 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": []
}