{ "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" } } } } } } } } } } }, "/achievements": { "get": { "operationId": "AchievementController_findAll", "parameters": [], "responses": { "200": { "description": "" } } } }, "/player-achievements": { "get": { "operationId": "PlayerAchievementController_findAll", "parameters": [], "responses": { "200": { "description": "" } } }, "post": { "operationId": "PlayerAchievementController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateDto" } } } }, "responses": { "201": { "description": "" } } }, "delete": { "operationId": "PlayerAchievementController_delete", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeleteDto" } } } }, "responses": { "200": { "description": "" } } } } }, "info": { "title": "@galaxyops/player-achievements", "description": "Service for maintaining player achievements", "version": "0.0.1", "contact": {} }, "tags": [], "servers": [], "components": { "schemas": { "CreateDto": { "type": "object", "properties": { "playerId": { "type": "string", "description": "The playerId", "default": "264cc43a-cdf3-4417-bd2d-1983dd7915ea" }, "achievementId": { "type": "string", "description": "The achievementId", "default": "67a239f8-79a1-41c5-8bec-a7fa6c3f8470" }, "progress": { "type": "number", "description": "The progress", "default": 0 } }, "required": ["playerId", "achievementId", "progress"] }, "DeleteDto": { "type": "object", "properties": { "id": { "type": "string", "description": "The playerAchievementId", "default": "ba8d6a65-a537-405f-9662-b250526975d8" } }, "required": ["id"] } } } }