What is a RESTful API?

REST stands for Representational State Transfer. RESTful API has an approach to communication used in the development of web services. It is a style of a web service that works as a channel of communication between different systems over the internet. It is an application interface and is used to GET, PUT, POST, and DELETE data using HTTP requests.

The advantage of REST is that it uses less bandwidth, which is suitable for internet usage. The REST API uses uniform interfaces. All the resources are handled by GET, POST, PUT, and DELETE operations. The REST API uses GET to retrieve a resource, uses PUT to update the resource or to change the state of resource, uses POST to create a resource, and uses DELETE to delete the resource. Systems using REST APIs deliver fast performance and reliability.

The REST API handles every request independently. The request from client to server must contain all the information that is necessary to understand that request.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset