Skip to main content
This endpoint requires an active authenticated session. Unauthenticated requests are redirected to the login page.

Endpoint

Description

Returns a JSON array of all tasks where completed = 0. Completed tasks are permanently filtered out and will not appear in this response. The frontend calls this endpoint on initial page load and after every mutating operation (create, complete, delete).

Query parameters

boolean
Optional. Passed by the Vuex fetchTasks action. Defaults to false. The current controller implementation does not filter on this value — all incomplete tasks are returned regardless. Reserved for future use.

Response

Returns a JSON array of task objects. Returns an empty array [] when no incomplete tasks exist.

Response fields

integer
Unique identifier for the task.
integer
ID of the user the task is assigned to.
string
Short title of the task. Maximum 255 characters.
string
Detailed description of the task. Maximum 500 characters.
integer
Completion flag. Always 0 in this response — completed tasks are excluded.
string
ISO 8601 timestamp of when the task was created.
string
ISO 8601 timestamp of when the task was last updated.

Example response

Controller code

Frontend Axios call