This is a simple CRUD (Create, Read, Update, Delete) application for managing users, built with Rust and the Actix web framework. This project is intended for learning purposes and demonstrates basic operations for user management.
- Create a new user
- Retrieve a list of users
- Retrieve a specific user by ID
- Update an existing user
- Delete a user
- Rust
- Actix-web
- SQLx (for database interactions)
- PostgreSQL (as the database)
-
Create a new user
POST /users
Request body:
{ "name": "John Doe", "email": "john.doe@example.com", "password": "securepassword" }
-
Retrieve a list of users
GET /users
-
Retrieve a specific user by ID
GET /users/{id}
-
Update an existing user
PUT /users/{id}
Request body:
{ "name": "Jane Doe", "email": "jane.doe@example.com", "password": "newsecurepassword" }
-
Delete a user
DELETE /users/{id}