Skip to main content

Time reports API

General notes

Embeddable fields

NameTypeDescription
userUserUser that time report belongs to User.
taskTaskTask that time report belongs to Task.

Content

Time reports collection:

Single Time report:

Time reports collection

Time reports index

Request

Index behaviourDefinition
Paginated by defaultNo
Sortingid, task_id, user_id, date, minutes, description, goodday_created_at, created_at, updated_at
Filtersid:int, task_id:int, user_id:int, date:date, minutes:int, description:string, goodday_created_at:date, created_at:date, updated_at:date
Embedded-
GET /api/v0/time-reports HTTP/1.1
Content-Type: application/json

Response

200 OK

GET /api/v0/time-reports HTTP/1.1
Content-Type: application/json

{
"items": [
{
"id": 1,
"task_id": 1,
"user_id": 1,
"date": "2021-07-27T22:00:00.000000Z",
"minutes": 75,
"description": null,
"goodday_created_at": "2021-07-28T14:35:37+0200",
"created_at": "2022-11-23T16:06:57+0100",
"updated_at": "2022-11-23T16:06:57+0100",
"_links": [
{
"href": "/api/v0/time-reports/1",
"rel": "self",
"type": "GET"
}
]
},
{
"id": 2,
"task_id": 1,
"user_id": 1,
"date": "2021-07-25T22:00:00.000000Z",
"minutes": 60,
"description": "test",
"goodday_created_at": "2021-07-26T16:04:01+0200",
"created_at": "2022-11-23T16:06:57+0100",
"updated_at": "2022-11-23T16:06:57+0100",
"_links": [
{
"href": "/api/v0/time-reports/2",
"rel": "self",
"type": "GET"
}
]
}
]
}

Time report detail

Request

Index behaviourDefinition
Embedded-
GET /api/v0/time-reports/1 HTTP/1.1
Content-Type: application/json

Response

200 OK

GET /api/v0/time-reports/1 HTTP/1.1
Content-Type: application/json

{
"id": 1,
"task_id": 1,
"user_id": 1,
"date": "2021-07-27T22:00:00.000000Z",
"minutes": 75,
"description": null,
"goodday_created_at": "2021-07-28T14:35:37+0200",
"created_at": "2022-11-23T16:06:57+0100",
"updated_at": "2022-11-23T16:06:57+0100",
"_links": [
{
"href": "/api/v0/time-reports/1",
"rel": "self",
"type": "GET"
}
]
}

404 NOT FOUND

Time report was not found.

GET /api/time-reports/100 HTTP/1.1
Content-Type: application/json
Status-Code: 404

{
"type": "NotFound",
"message": "Required model was not found.",
"id": "0cd85449-05fe-4866-9802-8192e6785fc7"
}