- create .env file
- DB_USER
- DB_PASSWORD
- DB_NAME
docker compose up
go run main.go
Task /api/tasks
-
GET
Get all tasks -
POST
Create a taskbody { "Description" : , "Duedate" : , "Position" : , "ListID" : }
-
PATCH /:id
Update a taskbody { "Description" : , "Duedate" : }
-
DELETE /:id
Delete a task -
PATCH /movetonewlist/:id (task id)
Move a task to another listbody { "list_id" : #new list id }
-
PATCH /reorder/:id (task id)
Reorder a task in a listbody { "new_position" : }
List /api/lists
-
GET
Get all lists -
POST
Create a listbody { "Title" : , "Position" : , }
-
PATCH /:id
Update a listbody { "Title" : }
-
PATCH /reorder/:id (list id)
Reorder a listbody { "new_position" : }
-
DELETE /:id
Delete a list, also every tasks in it