Http Get, Post, Put, Delete

Sat, 29 Jun 2019

Here is an online TODO web application.

It can be used to keep a list of things to do. TODO web application

You can

  • See a list of todos
  • Add a new item to the list
  • Modify the description of an existing item
  • Delete an item

For each of the above operations, the frontend code sends an HTTP request to the backend.

  • See a list of todos - Frontend sends a HTTP GET request
  • Add a new item to the list - Frontend sends a HTTP POST request with the item description in its body
  • Modify the description of an existing item - Frontend sends an HTTP PUT request with the modified description in its body
  • Delete an item - Frontend sends a HTTP DELETE request.

For some of the HTTP requests, additional data is sent along with the request. This data is usually in JSON format.

HTTP GET request and response (using POSTMAN tool)

HTTP GET

HTTP POST request and response (using POSTMAN tool)

HTTP POST

HTTP PUT request and response (using POSTMAN tool)

HTTP PUT

HTTP DELETE request and response (using POSTMAN tool)

HTTP DELETE

Loading...