Rest API & HTTP Requests

What is an API?

  • API stands for Application Programming Interface
  • Contract provided by one piece of software to another
  • Structured request and response

What is REST?

REST stands for Representational State Transfer

Architectural style for for designing networked applications and it works by relying on a stateless client server communication protocol and in almost all cases this is HTTP.

API is the messenger and REST let us use HTTP request to format that message.

Let’s look at the different type of HTTP Requests

  • GET: Retrieve data from a specified resource
  • POST: Submit data to be processed to a specified resource
  • PUT: Update a specified resource, that is already on the server
  • DELETE: Delete a specified resource
Was this page helpful?

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *