• Home
  • Public Speaking
  • Travel

RESTful APIs Communication Details

What is a Restful API?

A RESTful API is an application program interface (API) that uses HTTP requests to perform operations on data such as GET, PUT, POST and DELETE.
REST (REpresentational State Transfer) is an architectural style, and an approach to communications that is often used in the development of Web services.
When building an API call, these factors are important:
  • Endpoint (pathway to a resource)
  • Method (action)
  • Header (parameters, authentication)
  • Body (parameters)

This is a sample representation:

After the request, we get the response. In addition to body and response message, response code is very important: