Private
Public Access
1
0
Files
linux_patch_api/src/api/mod.rs
Echo 24e7d9a796
Some checks failed
CI/CD Pipeline / Code Format (push) Successful in 11s
CI/CD Pipeline / Clippy Lints (push) Failing after 5m21s
CI/CD Pipeline / Unit Tests (push) Failing after 5m28s
CI/CD Pipeline / Security Audit (push) Successful in 1m47s
CI/CD Pipeline / Build Debian Package (push) Failing after 1s
CI/CD Pipeline / Build RPM Package (push) Failing after 1s
CI/CD Pipeline / Build Alpine Package (push) Failing after 2s
CI/CD Pipeline / Build Arch Package (push) Failing after 2s
CI/CD Pipeline / Create Release (push) Has been skipped
Apply cargo fmt formatting to fix CI/CD fmt job
2026-04-12 14:13:36 +00:00

28 lines
861 B
Rust

//! API Module - HTTP endpoints and routing
//!
//! This module provides the REST API layer for the Linux Patch API:
//! - Package management endpoints (GET/POST/PUT/DELETE /packages)
//! - Patch management endpoints (GET/POST /patches)
//! - System management endpoints (GET /system/info, GET /health, POST /system/reboot)
//! - Job management endpoints (GET/POST/DELETE /jobs)
//! - WebSocket endpoint for real-time job status streaming
pub mod handlers;
pub mod routes;
// Re-export handlers for convenience
pub use handlers::jobs;
pub use handlers::packages;
pub use handlers::patches;
pub use handlers::system;
pub use handlers::websocket;
// Re-export routes configuration
pub use routes::{configure_api_routes, configure_health_route};
/// API version
pub const API_VERSION: &str = "v1";
/// API base path
pub const API_BASE_PATH: &str = "/api/v1";