What is REST API?

Learn more about REST API

What is Rest API?

REST stands for Representational State Transfer

For an API to be RESTful, it must adhere to the following rules:

Stateless—A REST API is stateless in nature, Client-Server Architecture

Uniform Interface—A client and server should communicate with one another via HTTP using URIs, CRUD (Create, Read, Update, Delete) and JSON conventions.

Client-Server—The client and server should be independent of each other. The changes you make on the server shouldn’t affect the client and vice versa.

Cache—The client should have the ability to cache the responses as this improves the user experience by making them faster and more efficient.

Layered—The API should support a layered architecture, with each layer contributing to a clear hierarchy. Each layer should be loosely coupled and allow for encapsulation.

REST API Methods:

GET – Retrieve information about the REST API resource

POST – Create a REST API resource

PUT – Update a REST API resource

DELETE – Delete a REST API resource or related component

OPTIONS – List the supported operations in web service

HEAD – Returns only HTTP header and no body

Bijan Patel
Full Stack Test Automation Expert | Selenium Framework Developer | Certified Tosca Automation Specialist | Postman | DevOps | AWS | IC Agile Certified | Trainer | Youtuber | Blogger|

Launch your GraphyLaunch your Graphy
100K+ creators trust Graphy to teach online
𝕏
QASCRIPT 2024 Privacy policy Terms of use Contact us Refund policy