{"openapi":"3.1.0","info":{"title":"Miner Stats API","description":"API to retrieve miner statistics from the miners_stats directory","version":"1.0.0"},"paths":{"/":{"get":{"summary":"Root","description":"Root endpoint with API information.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/miners/{miner_uid}":{"get":{"summary":"Get Miner Data","description":"Get miner statistics for a specific miner UID.\n\nArgs:\n    miner_uid: The miner UID to retrieve stats for\n    \nReturns:\n    JSON array containing miner stats (up to 24 most recent files)","operationId":"get_miner_data_miners__miner_uid__get","parameters":[{"name":"miner_uid","in":"path","required":true,"schema":{"type":"string","title":"Miner Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/miners":{"get":{"summary":"List Miners","description":"List all available miners in the miners_stats directory.\n\nReturns:\n    JSON object containing list of miner UIDs","operationId":"list_miners_miners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/miners_stats":{"get":{"summary":"Get All Miners Latest Stats","description":"Get the latest stats for all miners, sorted by score (descending) then by UID (ascending).\n\nReturns:\n    JSON object with timestamp and miners array","operationId":"get_all_miners_latest_stats_miners_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","description":"Health check endpoint.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}