It is a simple example for JWT with Deno.
Method | URL | Description |
---|---|---|
GET | /api/v1/tasks | Get all tasks |
GET | /api/v1/tasks/:taskId | Get task by Id |
POST | /api/v1/tasks | Add new task |
PATCH | /api/v1/tasks/:taskId | Update a task |
DELETE | /api/v1/tasks/:taskId | Delete a task |
Method | URL | Description |
---|---|---|
POST | /api/v1/auth/register | User register |
POST | /api/v1/auth/login | User login |
GET | /api/v1/auth/logout | User logout |
Method | URL | Description |
---|---|---|
GET | /api/v1/users | Get personal data |