Module api

Module api 

Source
Expand description

REST API Server Module

This module provides a comprehensive REST API server implementation that exposes all AuthFramework functionality through HTTP endpoints.

Re-exports§

pub use responses::ApiError;
pub use responses::ApiResponse;
pub use responses::ApiResult;
pub use server::ApiServer;

Modules§

admin
Administrative API Endpoints
auth
Authentication API Endpoints
error_codes
Standard API Error Codes
health
Health Check and Monitoring API Endpoints
metrics
API Metrics and Observability
mfa
Multi-Factor Authentication API Endpoints
middleware
API Middleware
oauth
OAuth 2.0 API Endpoints
openapi
OpenAPI Documentation Generator
rbac_endpoints
RBAC API endpoints using role-system v1.0
responses
API Response Types
server
REST API Server Implementation
users
User Management API Endpoints
validation
Request Validation Middleware
versioning
API Versioning Support

Structs§

ApiState
API server state

Functions§

extract_bearer_token
Extract bearer token from Authorization header
validate_api_token
Validate API token and extract user information