aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com (unfollow)
Commit message (Collapse)AuthorLines
2023-05-29Version 1.0.0. No longer using `v1` in path.v1.0.0devAdrián Oliva-1/+1
2023-05-29Getting average of time to complete tasks.Adrián Oliva-0/+58
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.
2023-05-29New get function and sorting problems.Adrián Oliva-9/+10
Get function for filtered to dos. Sorting can now compare null objects. Reordered sorting because of a Concurrent Modification Exception.
2023-05-29Typo.Adrián Oliva-1/+1
Forgot to remove RequestBody from GetMapping.
2023-05-29First instance for pagination.Adrián Oliva-0/+75
Setting filters and sorters and saving them on a list. Then the list can be paginated and returned.
2023-05-28Little API call to retrieve last index used.Adrián Oliva-0/+9
2023-05-28Can set due date to null from edit.Adrián Oliva-1/+7
If the date is the timestamp 0 (i.e. 1970/01/01), the due date will be set as null.
2023-05-27Added more comments to help setup a database.Adrián Oliva-0/+6
2023-05-27Just removing a not useful semi-colon.Adrián Oliva-1/+1
2023-05-27Maybe a better way to allow Front End access API.Adrián Oliva-12/+10
Instead of setting all origins as valid, set only our origin as valid.
2023-05-26Changing priority case.Adrián Oliva-1/+1
To match the Front End's one.
2023-05-26CORS problem.Adrián Oliva-0/+14
It now accepts requests from outside the URL. See https://stackoverflow.com/a/64137023 and https://stackoverflow.com/a/46065200.
2023-05-26Added a GET request with filters.Adrián Oliva-1/+53
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").
2023-05-26New DELETE request to delete a to do.Adrián Oliva-5/+22
Path is "/todos/{id}" to delete a to do with id {id}.
2023-05-25Added blank spaces everywhere.Adrián Oliva-1/+4
2023-05-25New GET for sorted to dos.Adrián Oliva-9/+71
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.
2023-05-25New PUT request to edit to dos.Adrián Oliva-3/+20
Using PUT request on path /todos/{id}, the to do with id {id} will be updated with the new information parsed as body.
2023-05-25New PUT to set undone.Adrián Oliva-0/+13
PUT request on path /todos/{id}/undone sets the to do with id {id} to undone. It also resets the 'doneDate' variable.
2023-05-25POST to set done.Adrián Oliva-5/+31
POST on /todos/{id}/done to set the to do with {id} done. :3
2023-05-25Extended "save" method.Adrián Oliva-1/+21
It now can overwrite existing todos if they share the same ID.
2023-05-25Little typo on POST.Adrián Oliva-1/+1
Now it uses the page /todos.
2023-05-25Added new comments and reformatted an empty function.Adrián Oliva-4/+4
2023-05-25Added HTTP responses and text has max length.Adrián Oliva-0/+10
HTTP responses to each action. Raising an error when "text" has surpassed the 120 character limit.
2023-05-25Added a POST endpoint.Adrián Oliva-6/+26
Submit a JSON formatted body with the values "text", "dueDate" and "priority" to submit a new to do.
2023-05-25Added GET endpoint to list to dos.Adrián Oliva-4/+203
Currently the directory is /v1/todos. It'll retrieve a list of all to dos.
2023-05-25Added ToDos class.Adrián Oliva-0/+124
Class for saving all single to dos.
2023-05-24First simple Get Request.Adrián Oliva-0/+19
Returns a string with a "GET" request and on the page "/greet".