API: Added event time

This commit is contained in:
Igor Scheller 2023-12-22 17:21:31 +01:00 committed by Michael Weimann
parent 7637e0c66e
commit 6e4c9b2405
2 changed files with 13 additions and 6 deletions

View File

@ -391,12 +391,9 @@ components:
properties:
start:
$ref: '#/components/schemas/DateTimeOptional'
end:
$ref: '#/components/schemas/DateTimeOptional'
required:
- start
- end
teardown:
event:
type: object
properties:
start:
@ -406,6 +403,13 @@ components:
required:
- start
- end
teardown:
type: object
properties:
end:
$ref: '#/components/schemas/DateTimeOptional'
required:
- end
required:
- api
- spec
@ -414,6 +418,7 @@ components:
- url
- timezone
- buildup
- event
- teardown
security:

View File

@ -67,10 +67,12 @@ class IndexController extends ApiController
'timezone' => (string) $config->get('timezone'),
'buildup' => [
'start' => $config->get('buildup_start'),
'end' => $config->get('buildup_end'),
],
'event' => [
'start' => $config->get('event_start'),
'end' => $config->get('event_end'),
],
'teardown' => [
'start' => $config->get('teardown_start'),
'end' => $config->get('teardown_end'),
],
]];