Skip to content

Computed worked time #108

@enriquezrene

Description

@enriquezrene

As a user, I want to know the summary of my worked time in the current week.

We need to build an endpoint:

GET /time-entries/summary

That needs to use the user id from the JWT to query the time entries. We need a response like this:

{
   "day": {
      "hours":#
      "minutes":#
      "seconds":#
   },
   "week": {
      "hours":#
      "minutes":#
      "seconds":#
   },
   "month": {
      "hours":#
      "minutes":#
      "seconds":#
   }
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions