Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sawa-ko/rust-todo-api
https://github.com/sawa-ko/rust-todo-api
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sawa-ko/rust-todo-api
- Owner: sawa-ko
- Created: 2024-06-25T16:48:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-27T15:00:37.000Z (6 months ago)
- Last Synced: 2024-12-23T21:54:23.508Z (12 days ago)
- Language: Rust
- Size: 174 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple TODO API
Practicing my rust skills with a simple project which involves creating api rest and using databases.
## Tools
1. Rocket.rs
2. Sea-ORM
3. jsonwebtoken## Endpoints
### Task
1. `POST` `http://127.0.0.1:8000/task/create`: Create
2. `PATCH` `http://127.0.0.1:8000/task/update/`: Update
3. `DELETE` `http://127.0.0.1:8000/task/delete/`: Delete
4. `GET` `http://127.0.0.1:8000/task`: Get all tasks of the current auth user
5. `GET` `http://127.0.0.1:8000/task/`: Get the task only if the creator is the current auth user### Auth
1. `POST` `http://127.0.0.1:8000/auth/sign-in`: Login and get the auth token
2. `POST` `http://127.0.0.1:8000/auth/sign-up`: Create a new user
3. `Me` `http://127.0.0.1:8000/auth/sign-up`: Get the current auth user data and tasks### Misc
1. `GET` `http://127.0.0.1:8000`: Ping to apiBye 🐈