Spaces:
Sleeping
Sleeping
| """API information routes.""" | |
| from fastapi import APIRouter | |
| from typing import Dict, List | |
| from ..responses import ApiInfoResponse | |
| router = APIRouter() | |
| async def get_api_info(): | |
| """Get API information and supported formats.""" | |
| return ApiInfoResponse( | |
| version="1.0.0", | |
| supported_video_formats=['.mp4', '.avi', '.mov', '.mkv', '.webm', '.flv', '.wmv', '.m4v'], | |
| supported_audio_formats=['mp3', 'aac', 'wav', 'flac', 'm4a', 'ogg'], | |
| quality_levels=['high', 'medium', 'low'], | |
| max_direct_response_size_mb=10.0, | |
| endpoints={ | |
| "/api/v1/extract": "POST - Extract audio from video", | |
| "/api/v1/jobs/{job_id}": "GET - Check job status", | |
| "/api/v1/jobs/{job_id}/download": "GET - Download processed audio", | |
| "/api/v1/info": "GET - API information", | |
| "/api/v1/health": "GET - Health check" | |
| } | |
| ) | |
| async def health_check(): | |
| """Simple health check endpoint.""" | |
| return {"status": "healthy", "service": "audio-extractor-api"} |