What is REST API? | Web Service

What is REST API? | Web Service

April 16, 2021
What is REST API? | Web Service

REST API

A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for representational state transfer and was created by computer scientist Roy Fielding.

  • What is a REST API?
  • What can it do for you?
  • How do you use it?

An API is an application programming interface. It is a set of rules that allow programs to talk to each other. The developer creates the API on the server and allows the client to talk to it.

 

Representational State Transfer is a software architectural style that defines a set of constraints to be used for creating Web services. Web services that conform to the REST architectural style, called RESTful Web services, provide interoperability between computer systems on the internet.

Server send some data to client in form of JSON/XML not HTML

Resource

https://statelyworld.com/add?num1=2&num2=2
https://statelyworld.com/questions?subject=php
https://statelyworld.com/questions/php

HTTP Methods

C Create POST
R Read GET
U Update PUT
D Delete DELETE

 

Leave A Comment