This documentation covers the Todo List web API.
All server response bodies and request bodies MUST be valid JSON Media Type messages.
Deploy page: https://fancytd.hanabc.xyz
Route | HTTP | Description | Input | Output |
---|---|---|---|---|
/api/register |
POST | Create new user via manual register | [name], [email], [password] | User Detail |
/api/login |
POST | Login user via manual login | [email], [password] | User Detail |
/api/google-signin |
POST | Create new user or login via google | [google account] | User Detail |
/api/update |
PUT | Update a user info | [id] [updated_parameter] | User Detail |
Route | HTTP | Description | Input | Output |
---|---|---|---|---|
/api/todos/list |
GET | Get all the tasks | none | Task List |
/api/todos/list |
POST | Create a task (user only) | [id], [title], [desc], [date] | Task List |
/api/todos/:id |
POST | Delete a task (user only) | [id] | none |
/api/todos/:id |
PUT | Update a task with new info (user only) | [id] [updated_parameter] | Task List |