Add schema definitions and responses for Weather API endpoints in OpenAPI spec

This commit is contained in:
Jeppe Bundgaard
2026-03-12 09:19:17 +01:00
parent 9002b3a113
commit bd36540f2b
+30
View File
@@ -6488,6 +6488,10 @@ paths:
responses:
'200':
description: Current weather retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/WeatherApiObjectResponse'
/modules/weatherapi/forecast:
get:
@@ -6536,6 +6540,10 @@ paths:
responses:
'200':
description: Location search results retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/WeatherApiObjectResponse'
/departments/weather:
get:
@@ -6566,6 +6574,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/DepartmentWeatherTimelineEntry'
$ref: '#/components/schemas/DepartmentWeatherTimelineResponse'
/modules/entra/users:
get:
@@ -8336,6 +8345,27 @@ components:
$ref: '#/components/schemas/DepartmentWeatherStatus'
required: [time, weather, washes, hours, status]
WeatherApiObjectResponse:
allOf:
- $ref: '#/components/schemas/ModuleConfigEnvelopeBase'
- type: object
properties:
data:
type: object
additionalProperties: true
required: [data]
DepartmentWeatherTimelineResponse:
allOf:
- $ref: '#/components/schemas/ModuleConfigEnvelopeBase'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/DepartmentWeatherTimelineEntry'
required: [data]
ModuleConfigEntry:
type: object
properties: