This is a simple Rust-based web application that uses the Rocket framework to manage an in-memory database of records. It supports CRUD operations (Create, Read, Update, Delete) for records through a RESTful API.
-
Rocket requires Rust nightly version (follow Rocket's getting started guide for setup instructions)
git clone [https url]
rustup override set nightly
cargo build
cargo run
GET /health: Checks the health of the application.
GET /records: Retrieves all records from the database.
POST /records: Adds a new record to the database.
PUT /records/: Updates an existing record by its ID.
DELETE /records/: Deletes a record by its ID.