ioet / time-tracker-backend

API to provide data to the time tracker project
5 stars 0 forks source link

List trending technologies #216

Open enriquezrene opened 4 years ago

enriquezrene commented 4 years ago

Purpose We need an endpoint to list the most used technologies in the application taking into account the time-entries created. For it, we will need to sum the times per entry created using that technology from all the users interacting the app.

This option must be available for all users.

The information returned must be classified by month and the body will be an array of objects containing technology-name, minutes spend with the technology.

/technologies/preferred?month={MONTH_NUMBER}&year={YEAR} If month and year are not specified, the endpoint will return the data from the current month and year. The response will look like


[
{
 technology: "angular",
 time: 15800
},

{
 technology: "react",
 time: 1200
},

{
 technology: "docker",
 time: 1780
}
...
]

For now, the top ten is good enough

Scope

Criteria of acceptance

Angeluz-07 commented 3 years ago

Outline of solution: