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: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/somecodingwitch/rust-rest-api
- Owner: somecodingwitch
- License: mit
- Created: 2022-12-30T04:43:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-01-11T15:38:48.000Z (over 1 year ago)
- Last Synced: 2024-06-12T11:26:08.744Z (3 months ago)
- Language: Rust
- Size: 33.2 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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