{"openapi":"3.1.0","info":{"title":"Fana Cumik API","version":"1.0.0","description":"HTTP over the manga source adapters. Ids are site paths, handed back verbatim by an earlier call. Responses are cached at the edge."},"servers":[{"url":"/"}],"paths":{"/sources":{"get":{"summary":"List sources","operationId":"listSources","tags":["sources"],"responses":{"200":{"description":"Registered adapters","content":{"application/json":{"schema":{"type":"object","required":["sources"],"properties":{"sources":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}}}}}}}},"/sources/{source}/latest":{"get":{"summary":"Latest manga","operationId":"latestManga","tags":["manga"],"parameters":[{"name":"source","in":"path","required":true,"description":"Adapter id, from GET /sources","schema":{"type":"string","enum":["asura","elftoon","komiku","mangadex","mgeko","omega","vortex","weebcentral"]}},{"name":"page","in":"query","description":"1-based page for the listing endpoints","schema":{"type":"integer","minimum":1,"default":1}}],"responses":{"200":{"description":"Newest titles, one page","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Manga"}}}}},"400":{"description":"Missing or malformed query parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown source id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream site fetch failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sources/{source}/search":{"get":{"summary":"Search manga","operationId":"searchManga","tags":["manga"],"parameters":[{"name":"source","in":"path","required":true,"description":"Adapter id, from GET /sources","schema":{"type":"string","enum":["asura","elftoon","komiku","mangadex","mgeko","omega","vortex","weebcentral"]}},{"name":"q","in":"query","required":true,"description":"Search term","schema":{"type":"string"}},{"name":"page","in":"query","description":"1-based page for the listing endpoints","schema":{"type":"integer","minimum":1,"default":1}}],"responses":{"200":{"description":"Matches","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Manga"}}}}},"400":{"description":"Missing or malformed query parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown source id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream site fetch failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sources/{source}/manga":{"get":{"summary":"Manga details with chapters","operationId":"mangaDetails","tags":["manga"],"parameters":[{"name":"source","in":"path","required":true,"description":"Adapter id, from GET /sources","schema":{"type":"string","enum":["asura","elftoon","komiku","mangadex","mgeko","omega","vortex","weebcentral"]}},{"name":"id","in":"query","required":true,"description":"Manga id, from a listing","schema":{"type":"string","pattern":"^/","example":"/manga/solo-leveling"}}],"responses":{"200":{"description":"Details; every chapter also carries a normalised `ago`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MangaDetails"}}}},"400":{"description":"Missing or malformed query parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown source id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream site fetch failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sources/{source}/pages":{"get":{"summary":"Chapter image URLs","operationId":"chapterPages","tags":["chapters"],"parameters":[{"name":"source","in":"path","required":true,"description":"Adapter id, from GET /sources","schema":{"type":"string","enum":["asura","elftoon","komiku","mangadex","mgeko","omega","vortex","weebcentral"]}},{"name":"id","in":"query","required":true,"description":"Chapter id, from the details chapter list","schema":{"type":"string","pattern":"^/","example":"/manga/solo-leveling/chapter/1"}}],"responses":{"200":{"description":"Page images in reading order; empty when the site hosts none for that chapter (paid, external, deleted)","content":{"application/json":{"schema":{"type":"object","required":["id","pages"],"properties":{"id":{"type":"string"},"pages":{"type":"array","items":{"type":"string","format":"uri"}}}}}}},"400":{"description":"Missing or malformed query parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown source id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream site fetch failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Manga":{"type":"object","required":["id","title","cover","sourceId"],"properties":{"id":{"type":"string","description":"Site path; hand it back to /manga and /pages"},"title":{"type":"string"},"cover":{"type":"string","description":"Absolute cover image URL"},"sourceId":{"type":"string"}}},"Chapter":{"type":"object","required":["id","title","number","date","ago"],"properties":{"id":{"type":"string","description":"Site path; hand it back to /pages"},"title":{"type":"string"},"number":{"type":"number","description":"Sort key; the list is newest first"},"date":{"type":"string","description":"Date as the site prints it"},"ago":{"type":"string","description":"The same date in one label form: \"3 days ago\", \"today\", \"just now\""}}},"MangaDetails":{"allOf":[{"type":"object","required":["id","title","cover","sourceId"],"properties":{"id":{"type":"string","description":"Site path; hand it back to /manga and /pages"},"title":{"type":"string"},"cover":{"type":"string","description":"Absolute cover image URL"},"sourceId":{"type":"string"}}},{"type":"object","required":["description","authors","status","genres","chapters"],"properties":{"description":{"type":"string"},"authors":{"type":"array","items":{"type":"string"}},"status":{"type":"string","description":"e.g. \"Ongoing\", \"Completed\""},"genres":{"type":"array","items":{"type":"string"}},"chapters":{"type":"array","items":{"$ref":"#/components/schemas/Chapter"}}}}]},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"status":{"type":"integer"}}}}}}