Get API version
GET/api/v1/version
Returns the current API version
Responses
- 200
- 500
Successful retrieval version
- application/json
- Schema
- Example (auto)
Schema
versionStruct object
deprecatedboolean
deprecated or not
{
"versionStruct": {
"major": "string",
"minor": "string",
"patch": "string",
"pre-release": "string"
},
"deprecated": true
}
Internal Server Error
- application/json
- Schema
- Example (auto)
Schema
codeint32
error code
messagestring
error message
descriptionstring
error description
{
"code": 0,
"message": "string",
"description": "string"
}
- curl
- python
- go
- nodejs
- php
- java
- CURL
curl -L '/api/v1/version' \
-H 'Accept: application/json'