Structure of a Request and Response

Understand the CRUD operations and what the structure of a request and response in a web application is.

Before moving on to the structure of a request and a response, it is important to understand CRUD operations.

What does CRUD stand for?

CRUD is an abbreviation for Create, Read, Update, and Delete. These are some of the main things that you might want to do when you are communicating with your client and server. On a REST API, the equivalent of those are actually HTTP methods or HTTPS operations.

  1. What’s the equivalent of “create” in an HTTP method?

    It is POST. A POST request is used to send data to the server, for example, customer information, file upload, some confidential data, etc. In other words, we use POST when we want to submit the data to the server, which needs to be processed by the specified resource.

  2. ...