{ "openapi": "3.0.1", "info": { "title": "Api", "version": "1.0" }, "paths": { "/zones": { "get": { "tags": [ "Api" ], "operationId": "GetZones", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Zone" } } } } } } } }, "/forecast/{zoneId}": { "get": { "tags": [ "Api" ], "operationId": "GetForecastByZone", "parameters": [ { "name": "zoneId", "in": "path", "required": true, "style": "simple", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Forecast" } } } } } } } } }, "components": { "schemas": { "Forecast": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "detailedForecast": { "type": "string", "nullable": true } }, "additionalProperties": false }, "Zone": { "type": "object", "properties": { "key": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "state": { "type": "string", "nullable": true }, "forecastOffices": { "type": "array", "items": { "type": "string" }, "nullable": true }, "timeZone": { "type": "array", "items": { "type": "string" }, "nullable": true }, "observationStations": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "additionalProperties": false } } } }