Rename active_schedule to override_schedule in request
This commit is contained in:
parent
b28db015b4
commit
470b9c905b
2 changed files with 26 additions and 15 deletions
14
api.v1.json
14
api.v1.json
|
|
@ -6,7 +6,7 @@
|
|||
"url": "https://git.serguzim.me/emgauwa/"
|
||||
},
|
||||
"title": "Emgauwa API v1",
|
||||
"version": "0.5.1",
|
||||
"version": "0.6.0",
|
||||
"description": "Server API to manage an Emgauwa system."
|
||||
},
|
||||
"tags": [
|
||||
|
|
@ -524,8 +524,10 @@
|
|||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"active_schedule": {
|
||||
"override_schedule": {
|
||||
"type": "object",
|
||||
"nullable": true,
|
||||
"description": "NULL will remove the override schedule, missing field will not change the override schedule",
|
||||
"properties": {
|
||||
"id": {
|
||||
"$ref": "#/components/schemas/schedule_id"
|
||||
|
|
@ -1118,6 +1120,14 @@
|
|||
"active_schedule": {
|
||||
"$ref": "#/components/schemas/schedule_simple"
|
||||
},
|
||||
"override_schedule": {
|
||||
"nullable": true,
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/schedule_simple"
|
||||
}
|
||||
]
|
||||
},
|
||||
"schedules": {
|
||||
"type": "array",
|
||||
"maxItems": 7,
|
||||
|
|
|
|||
Loading…
Reference in a new issue