Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sawa-ko/rust-todo-api


https://github.com/sawa-ko/rust-todo-api

Last synced: 7 days ago
JSON representation

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 api

Bye 🐈