{"openapi":"3.1.0","info":{"title":"Api","version":"0.1.0","description":"API specification"},"servers":[{"url":"/api","description":"Base API path"}],"tags":[{"name":"health","description":"Health operations"},{"name":"dice","description":"Dice rolling operations"}],"paths":{"/healthz":{"get":{"operationId":"healthCheck","tags":["health"],"summary":"Health check","description":"Returns server health status","responses":{"200":{"description":"Healthy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}},"/dice":{"get":{"operationId":"rollDice","tags":["dice"],"summary":"Roll dice","description":"Roll one or more dice. Use `sides` to choose the die type (e.g. 6 for a standard die, 20 for a d20). Use `count` to roll multiple dice at once.\n","parameters":[{"name":"sides","in":"query","required":false,"description":"Number of sides on each die (default 6)","schema":{"type":"integer","minimum":2,"maximum":100,"default":6}},{"name":"count","in":"query","required":false,"description":"Number of dice to roll (default 1)","schema":{"type":"integer","minimum":1,"maximum":20,"default":1}}],"responses":{"200":{"description":"Dice roll result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiceResult"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"HealthStatus":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"]},"DiceResult":{"type":"object","properties":{"rolls":{"type":"array","description":"Individual result for each die rolled","items":{"type":"integer"}},"total":{"type":"integer","description":"Sum of all rolls"},"sides":{"type":"integer","description":"Number of sides each die had"},"count":{"type":"integer","description":"Number of dice rolled"}},"required":["rolls","total","sides","count"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}