What is a REST interface and what are its benefits?

What is a REST interface and what are its benefits?

Here is a summary of what you need to know about REST:

  • REST is an acronym for Representational State Transfer
  • REST is an architecture style for designing networked applications. The idea is that, rather than using complex mechanisms such as CORBA, RPC or SOAP to connect between machines, simple HTTP is used to make calls between machines
  • REST requests made from a client to a resource (server) will receive a response that may be in XML, HTML, JSON or some other format.
  • REST has become one of the most important technologies for Web applications

Rest API

REST Characteristics

  • REST is primarily used to build Web services that are lightweight, maintainable & scalable
  • REST is not dependent on any protocol, but it relies on a stateless, client-server, cacheable communications protocol — and in virtually all cases, the HTTP protocol is used
  • REST allows clients (browsers) and servers to interact in complex ways without the client knowing anything beforehand about the server and the resources it hosts

REST Usage

  • REST is a lightweight alternative to mechanisms like RPC (Remote Procedure Calls) and Web Services (SOAP, WSDL, et al.)
  • REST vs. RESTful: RESTful is a service based on REST
  • Despite being simple, REST is fully-featured; there’s basically nothing you can do in Web Services that can’t be done with a RESTful architecture.
  • The World Wide Web (WWW) is based on HTTP, thus can be viewed as a REST-based architecture. RESTful applications use HTTP requests to post data (create and/or update), read data (e.g., make queries), and delete data

REST constraints

  1. Uniform Interface
  2. Stateless
  3. Cacheable
  4. Client-Server
  5. Layered System
  6. Code on Demand (optional)

Clicking on the links above will provide more info (Source: restapitutorial.com)

REST history

In 2000 a doctoral candidate at UC Irvine named Roy Fielding presented his thesis entitled “Architectural Styles and the Design of Network-based Software Architectures”. In his thesis, Mr. Fielding describes a model he called Representational State Transfer (REST) as an architectural principle of the World Wide Web. Over the ensuing years, the acceptance of REST as an approach to developing web services has led to many software vendors implementing REST into their products (and therefore becoming RESTful) as a way of providing interoperability with their products.

Resources

 

Sources:

2017-06-16T13:58:06+00:00 Jun 16th, 2017|Categories: Technologies|Tags: |0 Comments

About the Author:

Christos Rizos is a Network, Systems and Applications Management expert with 20+ years experience in the technology domain, providing consulting services to Vendors and Operators around the world.

Leave A Comment