Skip to content
/ actix Public

A simple Rust and Actix-based CRUD API for user management.

Notifications You must be signed in to change notification settings

Flepsz/actix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Rust and Actix-based CRUD API for user management.

Topics

Resources

Stars

Watchers

Forks

Languages