Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 1.28 KB

README.md

File metadata and controls

75 lines (53 loc) · 1.28 KB

User CRUD API in Rust with Actix

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.

Features

  • Create a new user
  • Retrieve a list of users
  • Retrieve a specific user by ID
  • Update an existing user
  • Delete a user

Technologies Used

  • Rust
  • Actix-web
  • SQLx (for database interactions)
  • PostgreSQL (as the database)

API Endpoints

  • 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}

Acknowledgements