Skip to content

Return last entries created with different projects #215

@enriquezrene

Description

@enriquezrene

We need an endpoint to return the latest time-entries created belonging to different projects

For example, if I have created
5 entries for project A:
11/01/2020
15/12/2019
...
01/10/2020

10 for project B,
01/10/2020
15/09/2020
...
01/01/2018

7 for Project C,
12/07/2020
07/07/2020
...
01/01/2018

The endpoint will return the last created entry for each project as follows:

http://ip:port/time-entries/latest
01/10/2020 - Project A
01/10/2020 - Project B
12/07/2020 - Project C

Each entry needs to include the following fields:

  • Project ID
  • Project name
  • Activity ID
  • Activity Name
  • Ticket URI
  • Technologies
  • Notes

Note
Include maximum 10 different projects, all the data should belong to the owner of the JWT in the request

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions