1.

What Is Rest (representational State Transfer)?

Answer»

A type of remote access PROTOCOL, which, transfers state from client to server which can be used to manipulate state instead of calling remote procedures.

  • Does not define any specific encoding or structure and ways of returning useful error messages.
  • Uses HTTP "verbs" to perform state transfer operations.
  • The resources are uniquely identified using URL.
  • It is not an API but instead an API transport layer.

REST maintains the nomenclature of resources on a network and provides unified mechanism to perform operations on these resources. Each resource is identified by at least ONE identifier. If the REST infrastructure is implemented with the base of HTTP, then these identifiers are termed as Uniform Resource Identifiers (URIs).

The following are the two common subsets of the URI set:

URL--- Uniform Resource Locator

URN--- Uniform Resource Name--- urn:isbn:0-201-71088-9 urn:uuid:13e8cf26-2a25-11db-8693-000ae4ea7d46

Before UNDERSTANDING the implementation of CherryPy architecture, let’s focus on the architecture of CherryPy.

CherryPy includes the following three components

  • cherrypy.engine − It controls PROCESS startup/teardown and event handling.
  • cherrypy.server − It configures and controls the WSGI or HTTP server.
  • cherrypy.tools − A toolbox of utilities that are orthogonal to processing an HTTP request.

A type of remote access protocol, which, transfers state from client to server which can be used to manipulate state instead of calling remote procedures.

REST maintains the nomenclature of resources on a network and provides unified mechanism to perform operations on these resources. Each resource is identified by at least one identifier. If the REST infrastructure is implemented with the base of HTTP, then these identifiers are termed as Uniform Resource Identifiers (URIs).

The following are the two common subsets of the URI set:

URL--- Uniform Resource Locator

URN--- Uniform Resource Name--- urn:isbn:0-201-71088-9 urn:uuid:13e8cf26-2a25-11db-8693-000ae4ea7d46

Before understanding the implementation of CherryPy architecture, let’s focus on the architecture of CherryPy.

CherryPy includes the following three components



Discussion

No Comment Found