A REST API built with Rust and Actix-web for managing pizzas. The application uses SurrealDB as the database backend.
- Get all pizzas
- Create a new pizza
- Update an existing pizza by UUID
- Rust
- SurrealDB running on localhost:8000
- Start SurrealDB:
surreal start file:pizzadb --user root --password root- Build and run the application:
cargo runThe server will start on http://127.0.0.1:8080
- actix-web - Web framework
- async-trait - Async trait support
- derive_more - Additional derive macros
- serde - Serialization and deserialization
- serde_json - JSON support
- surrealdb - Database client
- uuid - UUID generation
- validator - Request validation
The application connects to SurrealDB with the following settings:
- Host: 127.0.0.1:8000
- Username: root
- Password: root
- Namespace: surreal
- Database: pizzas