aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/encora/ToDosRepository.java (follow)
Commit message (Collapse)AuthorAgeLines
* Getting average of time to complete tasks.Adrián Oliva2023-05-29-0/+33
| | | | | | Not as good as expected. But I don't have time anymore. :'( It appears as if the milliseconds are not converted into seconds and minutes properly. Will have to see this in depth.
* New get function and sorting problems.Adrián Oliva2023-05-29-4/+8
| | | | | Get function for filtered to dos. Sorting can now compare null objects. Reordered sorting because of a Concurrent Modification Exception.
* First instance for pagination.Adrián Oliva2023-05-29-0/+13
| | | | | Setting filters and sorters and saving them on a list. Then the list can be paginated and returned.
* Added more comments to help setup a database.Adrián Oliva2023-05-27-0/+6
|
* Added a GET request with filters.Adrián Oliva2023-05-26-0/+37
| | | | | | | Path is "/todos/filter". You have to pass as a body the arguments "name" for searching inside the to do's name, "priority" for specifying a priority level (or "All") and/or "done" for specifying if the to do is "Done" or "Undone" (or "All").
* New DELETE request to delete a to do.Adrián Oliva2023-05-26-5/+14
| | | | Path is "/todos/{id}" to delete a to do with id {id}.
* New GET for sorted to dos.Adrián Oliva2023-05-25-9/+50
| | | | | | | GET request with path "/todos/{field}/{order}", where {field} can be "Id", "Priority" or "DueDate" for sorting the corresponding fields, and {order} can be "ASC" or "DESC" for ascending or descending order, respectively.
* POST to set done.Adrián Oliva2023-05-25-5/+15
| | | | POST on /todos/{id}/done to set the to do with {id} done. :3
* Extended "save" method.Adrián Oliva2023-05-25-1/+21
| | | | It now can overwrite existing todos if they share the same ID.
* Added a POST endpoint.Adrián Oliva2023-05-25-5/+8
| | | | | Submit a JSON formatted body with the values "text", "dueDate" and "priority" to submit a new to do.
* Added GET endpoint to list to dos.Adrián Oliva2023-05-25-0/+188
Currently the directory is /v1/todos. It'll retrieve a list of all to dos.