{ "openapi": "3.0.0", "paths": { "/dice-roll": { "post": { "operationId": "DiceRollController_create", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QueryRollDto" } } } }, "responses": { "201": { "description": "" } } }, "get": { "operationId": "DiceRollController_roll", "parameters": [], "responses": { "200": { "description": "" } } } }, "/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" } } } } } } } } } } } }, "info": { "title": "@galaxyops/luck-by-dice", "description": "An API Simulating dice rolls that can be effected by luck from dice notation", "version": "4.1.0", "contact": {} }, "tags": [], "servers": [ { "url": "http://localhost:3000", "description": "Local" }, { "url": "https://html-to-pdf.sandbox.nekosgate.com/", "description": "Sandbox" } ], "components": { "schemas": { "QueryRollDto": { "type": "object", "properties": { "notation": { "type": "string", "description": "Dice notation", "default": "1d6" }, "luck": { "type": "number", "description": "Characters luck" }, "iterations": { "type": "number", "description": "Amount of times to roll", "minimum": 1, "maximum": 100, "default": 1 } }, "required": ["notation", "luck", "iterations"] } } } }