Professional Documents
Culture Documents
JKI HTTP REST Client Overview PDF
JKI HTTP REST Client Overview PDF
What is REST?
REST stands for Representational State Transfer. It is an architectural style for designing
networked applications. Under the hood, REST relies on a stateless use of the HTTP
protocol. REST has replaced other (more complex and complicated) protocols such as
CORBA, RPC and SOAP, making REST the de-facto standard for how software
communicates with other software over the network.
RESTful web services implement the Create/Read/Update/Delete (CRUD) paradigm,
using the HTTP POST/GET/PUT/DELETE methods for each of the four CRUD operations,
respectively. For example, let's imagine we're calling a RESTful web service to perform user
management:
• to add a new user to the system the client would perform a HTTP POST request
with the user data as the payload,
• to update the user account information the client would perform a
HTTP PUT request,
• to get the user account information the client would perform HTTP GET request,
and
• to delete the user account the client would perform HTTP DELETE request.
As a stateless architecture, each request to the web service is independent from all other
requests. The server does not maintain any session information about the client. Each
request is completely independent of one another and each response by the server includes
a numeric status code* indicating the success of the request.
*Note: status codes between 200-299 indicate a successful operation, status codes
between 400-499 indicate a client error and 500-599 a server error.