{"openapi":"3.1.0","info":{"title":"mOTUs database API","version":"0.1.0"},"paths":{"/v1/versions":{"get":{"tags":["System"],"summary":"Versions","description":"Return the versions of all tools and databases bundled in this release.","operationId":"versions_v1_versions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/genomes/{genome}/download":{"get":{"tags":["Download"],"summary":"Download Genome File","description":"Download a file associated with a genome.\n\nPerforms a two-hop lookup: the shard-index database maps the genome\nidentifier to the shard that holds the file, then the BLOB is retrieved\nfrom that shard and streamed as an octet-stream response.","operationId":"download_genome_file_v1_genomes__genome__download_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"genome","in":"path","required":true,"schema":{"type":"string","description":"Genome identifier","examples":["ARTA20-1_SAMN17006400_MAG_00000010"],"title":"Genome"},"description":"Genome identifier"},{"name":"file_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DownloadType","description":"File type to download (genome, gene_fna, gene_faa, gene_gff, antismash, pfam, eggnog, kegg, trna, rrna)"},"description":"File type to download (genome, gene_fna, gene_faa, gene_gff, antismash, pfam, eggnog, kegg, trna, rrna)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/genomes/{genome}/viewer/antismash/":{"get":{"tags":["Viewer"],"summary":"Antismash Viewer","description":"Serve the antiSMASH HTML viewer for a genome.\n\nThe viewer is stored as zlib-compressed static files in the antismash-viewer\nshard databases. Requests without a file_path default to index.html. MIME\ntypes are inferred from the file extension.","operationId":"antismash_viewer_v1_genomes__genome__viewer_antismash__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"genome","in":"path","required":true,"schema":{"type":"string","description":"Genome identifier","examples":["ARTA20-1_SAMN17006400_MAG_00000010"],"title":"Genome"},"description":"Genome identifier"},{"name":"file_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["System"],"summary":"Health Check","description":"Return server health status and confirm the master database is reachable.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"DownloadType":{"type":"string","enum":["genome","gene_fna","gene_faa","gene_gff","antismash","pfam","eggnog","kegg","trna","rrna"],"title":"DownloadType"},"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"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}