{"openapi":"3.1.0","info":{"title":"ZOOV API","description":"API for vehicle model conversions","version":"0.1.0"},"paths":{"/convert/yft/xml-to-gld/":{"post":{"tags":["YFT Conversion"],"summary":"Convert Yft To Glb Endpoint","description":"Converts a YFT XML file to GLB format and uploads it to Supabase storage.\nAlso generates a UV visualization texture.\n\nArgs:\n    file: ConversionRequest containing bucket, path, and return_path\n    request: FastAPI Request object\n    \nReturns:\n    JSONResponse with conversion status and file locations","operationId":"convert_yft_to_glb_endpoint_convert_yft_xml_to_gld__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/convert/ydd/xml-to-gld/":{"post":{"tags":["YDD Conversion"],"summary":"Convert Ydd To Glb Endpoint","description":"Converts a YDD XML file to GLB format and uploads it to Supabase storage.\n\nArgs:\n    file: ConversionRequest containing bucket, path, and return_path\n    request: FastAPI Request object\n    \nReturns:\n    JSONResponse with conversion status and file locations","operationId":"convert_ydd_to_glb_endpoint_convert_ydd_xml_to_gld__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/convert/ytd/dds-to-ytd/":{"post":{"tags":["YTD Conversion"],"summary":"Convert Dds To Ytd Endpoint","description":"Converts multiple DDS files to a single YTD texture dictionary file.\n\nThis endpoint:\n1. Downloads multiple DDS files from Supabase storage\n2. Converts them into a single GTA V YTD (Texture Dictionary) file\n3. Uploads the YTD file back to Supabase storage\n\nArgs:\n    request_data: DDSToYTDRequest containing:\n        - bucket: Supabase storage bucket name\n        - dds_paths: List of DDS file paths in the bucket\n        - return_path: Path where the YTD file should be uploaded\n        - ytd_name: Optional name for the texture dictionary (default: \"textures\")\n    request: FastAPI Request object\n    \nReturns:\n    JSONResponse with:\n        - message: Success/error message\n        - return_path: Path to the uploaded YTD file\n        - bucket: Storage bucket name\n        - texture_count: Number of textures in the YTD\n        \nRate Limit:\n    5 requests per minute per IP\n    \nExample:\n    POST /convert/ytd/dds-to-ytd/\n    {\n        \"bucket\": \"gtav-textures\",\n        \"dds_paths\": [\n            \"vehicles/infernus/albedo.dds\",\n            \"vehicles/infernus/normal.dds\"\n        ],\n        \"return_path\": \"vehicles/infernus/infernus.ytd\",\n        \"ytd_name\": \"infernus\"\n    }","operationId":"convert_dds_to_ytd_endpoint_convert_ytd_dds_to_ytd__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DDSToYTDRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/generate/yft/uv/":{"post":{"tags":["UV Generation"],"summary":"Generate Yft Uv","description":"Generates a UV visualization for a YFT XML file from Supabase storage.\nUploads the result to Supabase and returns the file path.\n\nArgs:\n    file: UVGenerationRequest containing bucket, path, return_path, and img_size\n    request: FastAPI Request object\n    \nReturns:\n    JSONResponse with the UV map file path","operationId":"generate_yft_uv_generate_yft_uv__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UVGenerationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","description":"Redirect to zoov.dev","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ConversionRequest":{"properties":{"bucket":{"type":"string","title":"Bucket"},"path":{"type":"string","title":"Path"},"return_path":{"type":"string","title":"Return Path"}},"type":"object","required":["bucket","path","return_path"],"title":"ConversionRequest"},"DDSToYTDRequest":{"properties":{"bucket":{"type":"string","title":"Bucket"},"dds_paths":{"items":{"type":"string"},"type":"array","title":"Dds Paths"},"return_path":{"type":"string","title":"Return Path"},"ytd_name":{"type":"string","title":"Ytd Name","default":"textures"}},"type":"object","required":["bucket","dds_paths","return_path"],"title":"DDSToYTDRequest","description":"Request model for DDS to YTD conversion"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"UVGenerationRequest":{"properties":{"bucket":{"type":"string","title":"Bucket"},"path":{"type":"string","title":"Path"},"return_path":{"type":"string","title":"Return Path"},"img_size":{"type":"integer","title":"Img Size","default":1024}},"type":"object","required":["bucket","path","return_path"],"title":"UVGenerationRequest"},"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"}}}}