Update api spec
This commit is contained in:
parent
2367874232
commit
d9afc6b4f2
1 changed files with 18 additions and 10 deletions
28
api.v1.json
28
api.v1.json
|
|
@ -6,7 +6,7 @@
|
|||
"url": "https://git.serguzim.me/emgauwa/"
|
||||
},
|
||||
"title": "Emgauwa API v1",
|
||||
"version": "0.6.0",
|
||||
"version": "0.7.0",
|
||||
"description": "Server API to manage an Emgauwa system."
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -94,8 +94,7 @@
|
|||
"parameters": [
|
||||
{
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
"$ref": "#/components/schemas/schedule_id"
|
||||
},
|
||||
"name": "schedule_id",
|
||||
"in": "path",
|
||||
|
|
@ -684,7 +683,7 @@
|
|||
"parameters": [
|
||||
{
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/controller_id"
|
||||
},
|
||||
"name": "controller_id",
|
||||
"in": "path",
|
||||
|
|
@ -692,7 +691,7 @@
|
|||
},
|
||||
{
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"type": "integer"
|
||||
},
|
||||
"name": "relay_num",
|
||||
"in": "path",
|
||||
|
|
@ -850,7 +849,8 @@
|
|||
"parameters": [
|
||||
{
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"name": "macro_id",
|
||||
"in": "path",
|
||||
|
|
@ -1065,8 +1065,8 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"operationId": "get-relays",
|
||||
"description": "Return a list with all relays."
|
||||
"operationId": "get-version",
|
||||
"description": "Return an object with the version"
|
||||
},
|
||||
"parameters": []
|
||||
}
|
||||
|
|
@ -1282,9 +1282,17 @@
|
|||
}
|
||||
},
|
||||
"schedule_id": {
|
||||
"type": "string",
|
||||
"title": "schedule_id",
|
||||
"format": "uuid",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "(on|off)"
|
||||
}
|
||||
],
|
||||
"example": "6bceb29b-7d2e-4af3-a26e-11f514dc5cc1"
|
||||
},
|
||||
"macro": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue