Get all tasks:
curl https://switchup-akuma.herokuapp.com/tasks
Get task by id:
curl https://switchup-akuma.herokuapp.com/tasks/1
Create task:
curl https://switchup-akuma.herokuapp.com/tasks \
-H 'Content-Type: application/json' \
-d '{"task":{"title":"First Task","issuer":"default"}}'
Change task by id:
curl https://switchup-akuma.herokuapp.com/tasks/1 \
-X PATCH \
-H 'Content-Type: application/json' \
-d '{"task":{"status":"assigned"}}'
Ask for task suggestion:
curl https://switchup-akuma.herokuapp.com/task_suggestion