| Crates.io | llm-config-api |
| lib.rs | llm-config-api |
| version | 0.5.0 |
| created_at | 2025-11-21 22:19:33.515345+00 |
| updated_at | 2025-11-21 22:19:33.515345+00 |
| description | REST API server for LLM Config Manager with JWT authentication, RBAC, rate limiting, and comprehensive security features |
| homepage | https://github.com/globalbusinessadvisors/llm-config-manager |
| repository | https://github.com/globalbusinessadvisors/llm-config-manager |
| max_upload_size | |
| id | 1944372 |
| size | 126,872 |
REST API server for LLM Config Manager with JWT authentication, RBAC, rate limiting, and comprehensive security features.
[dependencies]
llm-config-api = "0.5.0"
tokio = { version = "1", features = ["full"] }
use llm_config_api::ApiServer;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let server = ApiServer::builder()
.bind("0.0.0.0:8080")
.with_jwt_secret("your-secret-key")
.build()
.await?;
server.run().await?;
Ok(())
}
POST /api/v1/auth/login - Authenticate and get JWT tokenGET /api/v1/config/:key - Get configuration valuePUT /api/v1/config/:key - Update configuration valueDELETE /api/v1/config/:key - Delete configurationGET /api/v1/config/:key/history - Get configuration historyGET /health - Health check endpointGET /metrics - Prometheus metricsLicensed under the Apache License, Version 2.0.