Expand description
Clean API layer with RESTful endpoints
Modules§
- handlers
- API Handlers
- middleware
- API Middleware
- responses
- API Response Types
- server
- API Server
Structs§
- ApiError
- API error information
- ApiResponse
- Standard API response wrapper
- AppState
- Application state shared across handlers
- Argument
Info - Argument information response
- Discovery
Response - Discovery response for available routes
- Exec
Action Request - Request body for unified exec_action endpoint
- Execute
Query - Query parameters for operation execution
- Execute
Request - Request body for operation execution
- Execution
Result - Operation execution result
- Feature
Info - Feature information response
- Feature
Summary - Feature summary for discovery
- Health
Status - System health status
- Operation
Info - Operation information response
- Provider
Info - Provider information response
- Provider
Summary - Provider summary for discovery
- Server
Config - API server configuration
Functions§
- auth_
middleware - Authentication middleware (placeholder for future implementation)
- cors_
middleware - CORS middleware (if not using tower-http)
- create_
server - Create the API server with all routes configured
- discover_
providers - Discovery endpoint - list all providers and their capabilities GET /providers
- error_
handling_ middleware - Error handling middleware
- exec_
action - Unified action execution endpoint POST /exec_action
- execute_
operation - Execute an operation POST /providers/{provider}/features/{feature}/operations/{operation}
- get_
feature - Get specific feature information GET /providers/{provider}/features/{feature}
- get_
operation - Get specific operation information GET /providers/{provider}/features/{feature}/operations/{operation}
- get_
provider - Get specific provider information GET /providers/{provider}
- get_
stats - Registry statistics GET /stats
- health
- Health check endpoint GET /health
- list_
routes - List all available routes GET /routes
- rate_
limit_ middleware - Rate limiting middleware (placeholder for future implementation)
- request_
logging_ middleware - Request logging middleware
- start_
server - Start the API server