Add version to controller and api
This commit is contained in:
parent
f3d367e479
commit
4e97006919
7 changed files with 77 additions and 3 deletions
32
api.v1.json
32
api.v1.json
|
|
@ -27,6 +27,9 @@
|
|||
},
|
||||
{
|
||||
"name": "websocket"
|
||||
},
|
||||
{
|
||||
"name": "misc"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
|
|
@ -1037,6 +1040,35 @@
|
|||
"description": "Create a list of schedules"
|
||||
},
|
||||
"parameters": []
|
||||
},
|
||||
"/api/v1/version": {
|
||||
"get": {
|
||||
"summary": "get version info",
|
||||
"tags": [
|
||||
"misc"
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"headers": {},
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"operationId": "get-relays",
|
||||
"description": "Return a list with all relays."
|
||||
},
|
||||
"parameters": []
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue