REST API (Rust, axum)
A Rust JSON API with axum on tokio and Postgres through sqlx: checked queries and migrations, tower-http middleware, JWT authentication, one error shape, request limits and tests that run against a real database in Docker.
What you build
- A runnable axum API with one resource: create, read, update and delete behind JWT authentication
- Owner-only access in SQL, validation, a body limit, a timeout, capped pagination and a rate limit
- Tests on Postgres in Docker, a one-command gate with clippy and audits, and a CI workflow
What you need
| Stack | Rust · axum · tokio · sqlx · Postgres · tower-http |
|---|---|
| Level | Advanced |
| Platform | Server |
| Plan | Pro |
| Needs on your computer | Rust 1.94 or newer, Docker |
| Setup questions | About 5 minutes |
Start a project from one of these templates
Free plan on macOS. Pro is $10 a month or $96 a year.