diff --git a/openapi.yaml b/openapi.yaml index a232f1ec..657348b0 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -27,7 +27,7 @@ servers: description: Production server (.dk) - url: https://api.truckwash.io description: Production server (.io) - - url: http://localhost + - url: http://localhost/api description: Local development server security: @@ -6488,10 +6488,6 @@ paths: responses: '200': description: Current weather retrieved successfully - content: - application/json: - schema: - $ref: '#/components/schemas/WeatherApiObjectResponse' /modules/weatherapi/forecast: get: @@ -6540,10 +6536,6 @@ paths: responses: '200': description: Location search results retrieved successfully - content: - application/json: - schema: - $ref: '#/components/schemas/WeatherApiObjectResponse' /departments/weather: get: @@ -6566,7 +6558,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DepartmentWeatherTimelineResponse' + allOf: + - $ref: '#/components/schemas/SuccessResponse' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/DepartmentWeatherTimelineEntry' /modules/entra/users: get: @@ -8337,28 +8336,6 @@ 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: