ToDoApp
API endpoints:
GET http://localhost:8020/todos # for listing all to-do items
POST http://localhost:8020/todos # for creating a to-do item
PUT http://localhost:8020/todos/:id # for updating a to-do item
DELETE http://localhost:8020/todos/:id # for deleting a to-do item
Demo
You can make HTTP requests in Postman.
First we create a to-do item with POST request.
![POST example](https://github.com/mukhtarkv/workspace/raw/2cbf6af9ebcb/todo/demo/POST.png)
You can update previously created to-do item with PUT request. You can partially update to-do item by providing either title
or details
in update_mask
field.
![PUT example](https://github.com/mukhtarkv/workspace/raw/2cbf6af9ebcb/todo/demo/PUT.png)
You will see the updated to-do item if you call GET request to list all to-do items.
![GET updated item example](https://github.com/mukhtarkv/workspace/raw/2cbf6af9ebcb/todo/demo/GET_updated.png)
You can delete the to-do item.
![DELETE example](https://github.com/mukhtarkv/workspace/raw/2cbf6af9ebcb/todo/demo/DELETE.png)
And you will get empty list if you make GET request.
![GET empty list example](https://github.com/mukhtarkv/workspace/raw/2cbf6af9ebcb/todo/demo/GET_empty.png)