# k2db-api-server
Single-binary Rust HTTP server for the k2db API.
## What it provides
- Health, readiness, search, aggregate, count, patch, restore, and versioned-update endpoints.
- API-key based authentication for protected operations.
- Integration with the `k2db` Rust library for data access and policy enforcement.
- Standalone Axum-based deployment without needing a separate app framework.
## Running
```bash
cargo run -p k2db-api-server -- serve \
--mongo-uri mongodb://127.0.0.1:27017 \
--listen-host 127.0.0.1 \
--listen-port 3000
```
The binary also supports `init`, `recover`, `keys`, and `config` subcommands for bootstrap and control-plane operations.
License: MIT
Repository: https://github.com/frogfishio/k2db