aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeLines
* Changing priority case.Adrián Oliva2023-05-26-1/+1
| | | | To match the Front End's one.
* CORS problem.Adrián Oliva2023-05-26-0/+14
| | | | | | It now accepts requests from outside the URL. See https://stackoverflow.com/a/64137023 and https://stackoverflow.com/a/46065200.
* Added a GET request with filters.Adrián Oliva2023-05-26-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").
* New DELETE request to delete a to do.Adrián Oliva2023-05-26-5/+22
| | | | Path is "/todos/{id}" to delete a to do with id {id}.
* Added blank spaces everywhere.Adrián Oliva2023-05-25-2/+5
|
* New GET for sorted to dos.Adrián Oliva2023-05-25-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.
* New PUT request to edit to dos.Adrián Oliva2023-05-25-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.
* New PUT to set undone.Adrián Oliva2023-05-25-0/+13
| | | | | PUT request on path /todos/{id}/undone sets the to do with id {id} to undone. It also resets the 'doneDate' variable.
* POST to set done.Adrián Oliva2023-05-25-5/+31
| | | | 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.
* Little typo on POST.Adrián Oliva2023-05-25-1/+1
| | | | Now it uses the page /todos.
* Added new comments and reformatted an empty function.Adrián Oliva2023-05-25-4/+4
|
* Added HTTP responses and text has max length.Adrián Oliva2023-05-25-0/+10
| | | | | HTTP responses to each action. Raising an error when "text" has surpassed the 120 character limit.
* Added a POST endpoint.Adrián Oliva2023-05-25-6/+26
| | | | | 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-4/+203
| | | | | Currently the directory is /v1/todos. It'll retrieve a list of all to dos.
* Added ToDos class.Adrián Oliva2023-05-25-0/+124
| | | | Class for saving all single to dos.
* First simple Get Request.Adrián Oliva2023-05-24-0/+21
Returns a string with a "GET" request and on the page "/greet".