No description
Find a file
2026-04-02 09:00:00 +00:00
docs Add test stub and API reference docs 2026-02-26 09:00:00 +00:00
src Add readiness probe endpoint with DB connectivity check 2026-04-02 09:00:00 +00:00
tests Add test stub and API reference docs 2026-02-26 09:00:00 +00:00
.env.example Initial Rust/Axum API skeleton 2026-01-08 10:00:00 +00:00
.gitignore Initial Rust/Axum API skeleton 2026-01-08 10:00:00 +00:00
Cargo.toml Wire up router in main.rs 2026-03-06 16:00:00 +00:00
README.md Initial Rust/Axum API skeleton 2026-01-08 10:00:00 +00:00

nexus/backend-api

Core REST API for the Nexus platform. Built with Rust (Axum).

Development

cargo build
cargo test
cargo run -- --port 8080

Environment

Copy .env.example to .env before running locally.

API Reference

Endpoint Method Description
/health GET Liveness check
/api/v1/users GET List users
/api/v1/users/:id GET Get user by ID
/api/v1/auth/login POST Authenticate
/api/v1/auth/refresh POST Refresh JWT

Architecture

Request → Axum router → middleware (auth, logging) → handler → SQLx → PostgreSQL