HTTP Methods

Learn about HTTP and how we can use it to communicate between the client and server.

Before we begin to create an API, we must first understand some terms that allow this to happen; one of them is HTTP.

What is HTTP?

Hypertext Transfer Protocol (HTTP) is a protocol for transmitting documents such as HTML. It forms the structure for exchanging data over the web. Traditionally used for communication between a client and server. This communication involves understanding the request and response cycle:

Press + to interact
The request-response cycle
The request-response cycle

When using Nuxt, we will have the client code and server code in one project, and we are dealing with both sides. An example of the client could be a user visiting our project in the browser; the browser is the client making the request, and a response could be the web page returned from the server.

The client will often need to perform different types of requests. Some of these may be creating data, reading ...