{ "openapi": "3.0.0", "paths": { "/health": { "get": { "operationId": "HealthController_check", "parameters": [], "responses": { "200": { "description": "The Health Check is successful", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "example": "ok" }, "info": { "type": "object", "example": { "database": { "status": "up" } }, "additionalProperties": { "type": "object", "properties": { "status": { "type": "string" } }, "additionalProperties": { "type": "string" } }, "nullable": true }, "error": { "type": "object", "example": {}, "additionalProperties": { "type": "object", "properties": { "status": { "type": "string" } }, "additionalProperties": { "type": "string" } }, "nullable": true }, "details": { "type": "object", "example": { "database": { "status": "up" } }, "additionalProperties": { "type": "object", "properties": { "status": { "type": "string" } }, "additionalProperties": { "type": "string" } } } } } } } }, "503": { "description": "The Health Check is not successful", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "example": "error" }, "info": { "type": "object", "example": { "database": { "status": "up" } }, "additionalProperties": { "type": "object", "properties": { "status": { "type": "string" } }, "additionalProperties": { "type": "string" } }, "nullable": true }, "error": { "type": "object", "example": { "redis": { "status": "down", "message": "Could not connect" } }, "additionalProperties": { "type": "object", "properties": { "status": { "type": "string" } }, "additionalProperties": { "type": "string" } }, "nullable": true }, "details": { "type": "object", "example": { "database": { "status": "up" }, "redis": { "status": "down", "message": "Could not connect" } }, "additionalProperties": { "type": "object", "properties": { "status": { "type": "string" } }, "additionalProperties": { "type": "string" } } } } } } } } } } }, "/weather": { "post": { "operationId": "WeatherController_query", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QueryDto" } } } }, "responses": { "201": { "description": "" } } } }, "/weather/influence": { "post": { "operationId": "WeatherController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateDto" } } } }, "responses": { "201": { "description": "" } } } } }, "info": { "title": "@galaxyops/weather-control", "description": "A service for managing the weather", "version": "0.0.2", "contact": {} }, "tags": [], "servers": [], "components": { "schemas": { "QueryDto": { "type": "object", "properties": { "date": { "type": "string", "description": "Date", "default": "2024-02-03T05:45:21.080Z" }, "latitude": { "type": "string", "description": "Latitude", "default": "38.2942" }, "longitude": { "type": "string", "description": "Longitude", "default": "141.4164" } }, "required": ["date", "latitude", "longitude"] }, "CreateDto": { "type": "object", "properties": { "mood": { "type": "string", "description": "Mood of the one who influences the in-game weather", "default": "JOYFUL" }, "latitude": { "type": "string", "description": "Latitude", "default": "38.2942" }, "longitude": { "type": "string", "description": "Longitude", "default": "141.4164" } }, "required": ["mood", "latitude", "longitude"] } } } }