A simple todos app demo that showcases the features of using React Universal starter kit
Returns all todos that belongs to the authenticated user
{
Content-Type: 'application/json',
Authorization: 'Bearer [YOUR ACCESS TOKEN]',
}
[{
_id: string
user_id: String,
title: String,
completed: Boolean,
createDate: Date
}]
Property Name | Description |
---|---|
id | ID of the todo item |
user_id | ID of the user |
title | The description for the todo item |
completed | The status of whether the todo item has been completed |
createDate | The date of which the todo item is created |
Create a todo item
Same as GET /todos
request header.
{
title: String (required)
}
Property Name | Description |
---|---|
title | The description for the todo item. (Required) |
{
_id: string
user_id: String,
title: String,
completed: Boolean,
createDate: Date
}
Desciption: Same as GET /todos
response body.
Update a reminder
Field | Description |
---|---|
id | The ID of the todo item to be updated (Required) |
Same as GET /todos
request header.
{
title: String,
completed: Boolean,
}
(All fields are optional)
Property Name | Description |
---|---|
title | The description for the todo item. (If included, title cannot be null) |
completed | The status of whether the todo item has been completed |
{
_id: string
user_id: String,
title: String,
completed: Boolean,
createDate: Date
}
Desciption: Same as GET /todos
response body.
Delete a reminder
Field | Description |
---|---|
id | The ID of the todo item to be deleted (Required) |
Same as GET /todos
request header.
None
None
Status code 204 if success.
React-Native + Expo (mobile) / Electron.js (Desktop) / socket.io
Express.js / Socket.io
- Auth0 API