{"openapi":"3.1.0","info":{"title":"Ibycus CLIP matcher","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","description":"Проверка живости + что загружено.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/authors":{"get":{"summary":"Authors","description":"Список авторов с количеством стихов.\nПараметр language ('ru' или 'en') — опциональный фильтр.\nБез параметра возвращает авторов всех языков.\nОтвет отсортирован по имени автора.","operationId":"authors_authors_get","parameters":[{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/match":{"post":{"summary":"Match","description":"Подбор стихов по фото.\nВозвращает топ-5 стихов нужного языка (исключая указанных авторов),\nкаждый со строфой леммы-победителя и debug-леммами.","operationId":"match_match_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_match_match_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_match_match_post":{"properties":{"photo":{"type":"string","contentMediaType":"application/octet-stream","title":"Photo"},"language":{"type":"string","title":"Language"},"exclude_author_ids":{"type":"string","title":"Exclude Author Ids","default":""}},"type":"object","required":["photo","language"],"title":"Body_match_match_post"},"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"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}