This is a simple CRUD API built with Rust and Actix-web, similar to FastAPI.
- Create an item (
POST /items
) - Retrieve all items (
GET /items
) - Update an existing item (
PUT /items
) - Delete an item (
DELETE /items/{id}
)
Ensure you have Rust installed. If not, install it using:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/NotIncorecc/rust-crud.git
cd rust-crud
Navigate to the project root and run:
cargo build
cargo run
The server starts at http://127.0.0.1:8080.