tofu-api/api_tests/tasks.http

29 lines
374 B
HTTP

### Fetch all tasks
GET {{api_host}}/api/tasks
### Fetch one task
GET {{api_host}}/api/tasks/1
### Create new task
POST {{api_host}}/api/tasks
Content-Type: application/json
{
"title": "Some test task"
}
### Update task
PATCH {{api_host}}/api/tasks/1
Content-Type: application/json
{
"description": "Update!"
}
### Delete task
DELETE {{api_host}}/api/tasks/10