TasksListByProject - maxkunitsa/timeTracker GitHub Wiki

#Listing tasks by a projects

Returns all available tasks as an array of objects for specific project.

Note: Authentication required

GET    /projects/{project-id}/tasks

-- #####Response Example (success)

[
  {
    "id": "56425ecb64cb6ef144462e86",
    "name": "Super task",
    "projectId": "56424f9364cbffa00ef8d7e7"
  },
  {
    "id": "56426b8864cb6c6a08ce73f1",
    "name": "Duper task",
    "projectId": "56424f9364cbffa00ef8d7e7"
  }
]

-- #####Response Example (no tasks available)

[] //Empty array

-- #####Response Example (project doesn't exists)

{
  "message": "Project with 563f196764cb5c935dd4bec6 id does not exists"
}