Created
August 20, 2018 04:11
-
-
Save kinlane/8c8c0ab031b1d01a76b80d7bba31a0a4 to your computer and use it in GitHub Desktop.
cryptocompare-openapi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "1.0", | |
"title": "Cryptocompare", | |
"description": "TODO: Add Description" | |
}, | |
"host": "min-api.cryptocompare.com", | |
"basePath": "/", | |
"schemes": [ | |
"https" | |
], | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"paths": { | |
"/": { | |
"get": { | |
"description": "", | |
"summary": "API description", | |
"tags": [ | |
"Misc" | |
], | |
"operationId": "UnnammedEndpointGet", | |
"produces": [ | |
"application/json" | |
], | |
"parameters": [], | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
}, | |
"security": [], | |
"x-unitTests": [ | |
{ | |
"request": { | |
"method": "GET", | |
"uri": "/" | |
}, | |
"expectedResponse": { | |
"x-allowExtraHeaders": true, | |
"x-bodyMatchMode": "NONE", | |
"x-arrayOrderedMatching": false, | |
"x-arrayCheckCount": false, | |
"x-matchResponseSchema": true, | |
"headers": {} | |
}, | |
"x-testShouldPass": true, | |
"x-testEnabled": true, | |
"x-testName": "API description", | |
"x-testDescription": "" | |
} | |
], | |
"x-operation-settings": { | |
"CollectParameters": false, | |
"AllowDynamicQueryParameters": false, | |
"AllowDynamicFormParameters": false, | |
"IsMultiContentStreaming": false | |
} | |
} | |
}, | |
"/data/price": { | |
"get": { | |
"description": "", | |
"summary": "Get single price", | |
"tags": [ | |
"Misc" | |
], | |
"operationId": "DataPriceGet", | |
"produces": [ | |
"application/json" | |
], | |
"parameters": [ | |
{ | |
"name": "fsym", | |
"in": "query", | |
"required": true, | |
"type": "string", | |
"description": "" | |
}, | |
{ | |
"name": "tsyms", | |
"in": "query", | |
"required": true, | |
"type": "string", | |
"description": "" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
}, | |
"security": [], | |
"x-unitTests": [ | |
{ | |
"request": { | |
"method": "GET", | |
"uri": "/data/price?fsym=BTC&tsyms=USD,EUR,GBP,SEK" | |
}, | |
"expectedResponse": { | |
"x-allowExtraHeaders": true, | |
"x-bodyMatchMode": "NONE", | |
"x-arrayOrderedMatching": false, | |
"x-arrayCheckCount": false, | |
"x-matchResponseSchema": true, | |
"headers": {} | |
}, | |
"x-testShouldPass": true, | |
"x-testEnabled": true, | |
"x-testName": "Get single price", | |
"x-testDescription": "" | |
} | |
], | |
"x-operation-settings": { | |
"CollectParameters": false, | |
"AllowDynamicQueryParameters": false, | |
"AllowDynamicFormParameters": false, | |
"IsMultiContentStreaming": false | |
} | |
} | |
}, | |
"/data/pricemulti": { | |
"get": { | |
"description": "", | |
"summary": "Get multiple prices", | |
"tags": [ | |
"Misc" | |
], | |
"operationId": "DataPricemultiGet", | |
"produces": [ | |
"application/json" | |
], | |
"parameters": [ | |
{ | |
"name": "fsyms", | |
"in": "query", | |
"required": true, | |
"type": "string", | |
"description": "" | |
}, | |
{ | |
"name": "tsyms", | |
"in": "query", | |
"required": true, | |
"type": "string", | |
"description": "" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
}, | |
"security": [], | |
"x-unitTests": [ | |
{ | |
"request": { | |
"method": "GET", | |
"uri": "/data/pricemulti?fsyms=ETH,BTC,LTC&tsyms=USD,EUR,GBP" | |
}, | |
"expectedResponse": { | |
"x-allowExtraHeaders": true, | |
"x-bodyMatchMode": "NONE", | |
"x-arrayOrderedMatching": false, | |
"x-arrayCheckCount": false, | |
"x-matchResponseSchema": true, | |
"headers": {} | |
}, | |
"x-testShouldPass": true, | |
"x-testEnabled": true, | |
"x-testName": "Get multiple prices", | |
"x-testDescription": "" | |
} | |
], | |
"x-operation-settings": { | |
"CollectParameters": false, | |
"AllowDynamicQueryParameters": false, | |
"AllowDynamicFormParameters": false, | |
"IsMultiContentStreaming": false | |
} | |
} | |
}, | |
"/data/all/coinlist": { | |
"get": { | |
"description": "", | |
"summary": "Get coinlist", | |
"tags": [ | |
"Misc" | |
], | |
"operationId": "DataAllCoinlistGet", | |
"produces": [ | |
"application/json" | |
], | |
"parameters": [], | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
}, | |
"security": [], | |
"x-unitTests": [ | |
{ | |
"request": { | |
"method": "GET", | |
"uri": "/data/all/coinlist" | |
}, | |
"expectedResponse": { | |
"x-allowExtraHeaders": true, | |
"x-bodyMatchMode": "NONE", | |
"x-arrayOrderedMatching": false, | |
"x-arrayCheckCount": false, | |
"x-matchResponseSchema": true, | |
"headers": {} | |
}, | |
"x-testShouldPass": true, | |
"x-testEnabled": true, | |
"x-testName": "Get coinlist", | |
"x-testDescription": "" | |
} | |
], | |
"x-operation-settings": { | |
"CollectParameters": false, | |
"AllowDynamicQueryParameters": false, | |
"AllowDynamicFormParameters": false, | |
"IsMultiContentStreaming": false | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment