# API Documentation ## Overview The API is built with FastAPI and follows REST principles. ## Base URL - **Development**: `http://localhost:8000` - **API Prefix**: `/api/v1` ## Interactive Documentation FastAPI provides automatic interactive API documentation: - **Swagger UI**: http://localhost:8000/docs - **ReDoc**: http://localhost:8000/redoc ## Authentication (Add authentication details here when implemented) ## Endpoints ### Health Check ``` GET /health ``` Returns the health status of the API. **Response:** ```json { "status": "healthy" } ``` ### Root ``` GET / ``` Returns basic API information. **Response:** ```json { "message": "Welcome to the API", "version": "0.1.0" } ``` ## Error Responses All error responses follow this format: ```json { "detail": "Error message here" } ``` ### Common Status Codes - **200 OK** - Request succeeded - **201 Created** - Resource created successfully - **400 Bad Request** - Invalid request data - **401 Unauthorized** - Authentication required - **403 Forbidden** - Insufficient permissions - **404 Not Found** - Resource not found - **422 Unprocessable Entity** - Validation error - **500 Internal Server Error** - Server error ## Changelog See [CHANGELOG.md](./CHANGELOG.md) for API changes and migration notes.