{"openapi":"3.1.0","info":{"title":"Multilrc","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Process health (does not contact upstream services)","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/lyrics":{"post":{"summary":"Find lyrics using the configured provider order","operationId":"lyrics_v1_lyrics_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LyricsResult"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Attempt":{"properties":{"provider":{"type":"string","enum":["octave","musixmatch","genius","lyrics_lol"],"title":"Provider"},"status":{"type":"string","enum":["found","not_found","unavailable","not_configured","invalid_response"],"title":"Status"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["provider","status"],"title":"Attempt"},"ErrorResponse":{"properties":{"error":{"type":"string","title":"Error"},"attempts":{"items":{"$ref":"#/components/schemas/Attempt"},"type":"array","title":"Attempts"}},"type":"object","required":["error","attempts"],"title":"ErrorResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Line":{"properties":{"start":{"type":"number","minimum":0.0,"title":"Start"},"end":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"End"},"text":{"type":"string","title":"Text"}},"type":"object","required":["start","text"],"title":"Line"},"LyricsResult":{"properties":{"provider":{"type":"string","enum":["octave","musixmatch","genius","lyrics_lol"],"title":"Provider"},"track":{"$ref":"#/components/schemas/Track"},"plain_lyrics":{"type":"string","title":"Plain Lyrics"},"synced_lyrics":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synced Lyrics"},"lines":{"items":{"$ref":"#/components/schemas/Line"},"type":"array","title":"Lines"},"words":{"items":{"$ref":"#/components/schemas/Word"},"type":"array","title":"Words"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"attempts":{"items":{"$ref":"#/components/schemas/Attempt"},"type":"array","title":"Attempts"}},"type":"object","required":["provider","track","plain_lyrics"],"title":"LyricsResult"},"Track":{"properties":{"title":{"type":"string","maxLength":1000,"minLength":1,"title":"Title"},"artist":{"type":"string","maxLength":1000,"minLength":1,"title":"Artist"},"album":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Album"},"duration":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Duration"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"}},"type":"object","required":["title","artist"],"title":"Track"},"TrackQuery":{"properties":{"title":{"type":"string","maxLength":1000,"minLength":1,"title":"Title"},"artist":{"type":"string","maxLength":1000,"minLength":1,"title":"Artist"},"album":{"anyOf":[{"type":"string","maxLength":1000,"minLength":1},{"type":"null"}],"title":"Album"},"duration":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Duration"},"octave_id":{"anyOf":[{"type":"string","maxLength":1000,"minLength":1},{"type":"null"}],"title":"Octave Id"}},"additionalProperties":false,"type":"object","required":["title","artist"],"title":"TrackQuery"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Word":{"properties":{"start":{"type":"number","minimum":0.0,"title":"Start"},"end":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"End"},"text":{"type":"string","title":"Text"}},"type":"object","required":["start","text"],"title":"Word"}}}}