Skip to content

Conversation

@juanultimate
Copy link
Contributor

@juanultimate juanultimate commented Sep 10, 2020

Updating /time-entries/paginated endpoint.
The requests should look like this: {{baseUrl}}/time-entries/paginated?start_date=2020-09-10T00:00:00-05:00&end_date=2020-09-10T23:59:59-05:00&user_id=*&timezone_offset=300&start=0&length=2

And the response is going to be:

{
    "records_total": 25,
    "data": [
        {
            "running": true,
            "owner_id": "fba4417a-8135-42bc-83ab-6e38ba0eb4f9",
            "project_name": "My project",
            "activity_name": "Development",
            "owner_email": "[email protected]",
            "customer_id": "dd0efe6a-00ag-4d4f-be70-4858dta61d6a",
            "customer_name": "Test customer",
            "id": "6b2f2b40-c2e8-483e-bb25-8cfff0a3c30",
            "tenant_id": "01c91861-ac36-43f4-9964-17bd525974a4",
            "deleted": null,
            "project_id": "73d6a125-385a-446e-87e2-16a8ffa5b41b,
            "activity_id": "73d6a125-385a-446e-87e2-16a8ffa5b41b",
            "description": null,
            "start_date": "2020-09-10T19:48:40.571Z",
            "end_date": null,
            "uri": "test uri",
            "technologies": [
                "Angular 10"
            ],
            "timezone_offset": 300
        },
        {
            "running": true,
            "owner_id": "137155a5-4530-42ab-8b82-3c819949c986",
            "project_name": "My dear project",
            "activity_name": "Development",
            "owner_email": "[email protected]",
            "customer_id": "9e33c7c0-b0ed-3489-a8a8-4a7bd407d6dv",
            "customer_name": "My dear customer",
            "id": "71de9261-a88b-460d-aa12-80ad6a942319",
            "tenant_id": "71de9261-a88b-460d-aa12-80ad6a942319",
            "deleted": null,
            "project_id": "71de9261-a88b-460d-aa12-80ad6a942319",
            "activity_id": "71de9261-a88b-460d-aa12-80adgkjdf942319",
            "description": null,
            "start_date": "2020-09-10T19:16:46.965Z",
            "end_date": null,
            "uri": "WDA-22974",
            "technologies": [
                "zoom",
                "Github",

            ],
            "timezone_offset": 300
        }
    ]
}

@enriquezrene enriquezrene merged commit 71a3a92 into master Sep 15, 2020
@enriquezrene enriquezrene deleted the 192-time-entries-pagination branch September 15, 2020 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants