Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/somecodingwitch/rust-rest-api


https://github.com/somecodingwitch/rust-rest-api

Last synced: 17 days ago
JSON representation

Lists

README

        

## 🔹 Rust Users Rest API

> Project created to reinforce Rust knowledge based on REST principles, simulating an api
> created to manage (create, read, update and delete) users.

### Usage

**Endpoints:**

| Route | Method | Requirements | Description | Returns |
| ----- | ------ | ------------ | ----------- | ------- |
| /users/create | POST | body: ```{name: String, age: i32}``` | Create a new user | UserCreateResponse |
| /users/create-batch | POST | body: ```[{name: String, age: i32}...]``` | Creates new users | Vec\ |
| /users/`user_id` | GET | path: ```{user_id: String}``` | Gets an user by id | User |
| /users | GET | - | Gets all the users | Vec\ |

### Roadmap

- [x] ✨ Implement `user_id` with uuid
- [x] âš’ Create an user
- [x] âš’ Create various users
- [x] 📚 Read a single user
- [x] 📚 Read all the users
- [ ] 📚 Read users with pagination
- [ ] 🗑 Delete an user
- [ ] 🗑 Delete various users
- [ ] 🗑 Delete all the users