Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 629 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 629 Bytes

Akuma

Task management

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