By
S . Ragavi II MSC[CS]
Nadar Saraswathi College of Arts and Science
Theni
What is REST
 REST is acronym for REpresentational State Transfer.
It is architectural style for distributed hypermedia
systems and was first presented by Roy Fielding in
2000 in his famous dissertation.
 Like any other architectural style, REST also does have
it’s own 6 guiding constraints which must be satisfied
if an interface needs to be referred as RESTful.
Restful Methods
 POST – This would be used to create a new employee
using the RESTful web service
 GET - This would be used to get a list of all employee
using the RESTful web service
 PUT - This would be used to update all employee
using the RESTful web service
 DELETE - This would be used to delete all employee
using the RESTful web service
Guiding Principles of REST
 Client–server – By separating the user interface concerns
from the data storage concerns, we improve the portability
of the user interface across multiple platforms and improve
scalability by simplifying the server components.
 Stateless – Each request from client to server must contain
all of the information necessary to understand the request,
and cannot take advantage of any stored context on the
server. Session state is therefore kept entirely on the client.
 Cacheable – Cache constraints require that the data
within a response to a request be implicitly or explicitly
labeled as cacheable or non-cacheable. If a response is
cacheable, then a client cache is given the right to reuse
that response data for later, equivalent requests.
 Uniform interface – By applying the software engineering
principle of generality to the component interface, the overall
system architecture is simplified and the visibility of interactions
is improved. In order to obtain a uniform interface, multiple
architectural constraints are needed to guide the behavior of
components. REST is defined by four interface constraints:
identification of resources; manipulation of resources through
representations; self-descriptive messages; and, hypermedia as
the engine of application state.
 Layered system – The layered system style allows an
architecture to be composed of hierarchical layers by
constraining component behavior such that each component
cannot “see” beyond the immediate layer with which they are
interacting.
 Code on demand (optional) – REST allows client functionality
to be extended by downloading and executing code in the form
of applets or scripts. This simplifies clients by reducing the
number of features required to be pre-implemented.
What is JSON
 JSON (JavaScript Object Notation) is most widely
used data format for data interchange on the web. This
data interchange can happen between two computer
applications at different geographical locations or running
within the same machine.
 The good thing is that JSON is a human-readable as well as
a machine-readable format. So while applications/libraries
can parse the JSON documents – humans can also look at
the data and derive the meaning from it.
 All modern programming languages (e.g., Java, JavaScript,
Ruby, C#, PHP, Python, and Groovy) and application
platforms provide excellent support for producing
(serializing) and consuming (deserializing) JSON data.
JSON File and MIME Type
 The standard file type for storing a JSON document in
the filesystem is .json.
 JSON’s Internet Assigned Numbers Authority (IANA)
media (or MIME) type is application/json
JSON Document
 A JSON document may contain text, curly braces, square
brackets, colons, commas, double quotes, and maybe a few
other characters.
 Primarily, a valid JSON document can contain two
structures:
 An Object surrounded by curly braces and containing
multiple name/value pairs. In various languages, this is
realized as an record, struct, dictionary, hash table, keyed
list, or associative array.
 An Array or Ordered list of values surrounded by square
brackets. In most languages, this is realized as an vector,
list, or sequence
Difference between REST API and
JSON
 JSON is a format, commonly associated
with REST services, even though REST itself is format
agnostic. That means that, while JSON is the most
commonly used format, REST allows you to use XML,
HTML, pure text, and even custom formats.
THANK YOU

More Related Content

PPT
The Rest Architectural Style
PPTX
Rest based xml web services
PPTX
RESTfulll web services
PPTX
RESTful web services using java and spring
PDF
ReSTful API Final
PPTX
Restful web services
PPTX
LESS - Template-based Syndication and Presentation of Linked Data for End-users
The Rest Architectural Style
Rest based xml web services
RESTfulll web services
RESTful web services using java and spring
ReSTful API Final
Restful web services
LESS - Template-based Syndication and Presentation of Linked Data for End-users

Similar to 80068 (20)

PPTX
Unit 2
PPTX
Rest surekha
PPTX
Web-Services-web services-20052025-051043pm.pptx
PDF
Restful web services by Sreeni Inturi
PPTX
REST & RESTful APIs: The State of Confusion
PDF
IRJET- Rest API for E-Commerce Site
PDF
ODP
RESTful Web Services
PDF
ReST (Representational State Transfer) Explained
PPTX
Introduction to webservices
PDF
Rest web service
PPTX
Phalcon 2 High Performance APIs - DevWeekPOA 2015
PDF
Mobility Information Series - Webservice Architecture Comparison by RapidValue
PPTX
REST & SOAP.pptx
PDF
Rest api-interview
PPT
53 hui homework2
PDF
R01765113122
PDF
Design and Implementation of SOA Enhanced Semantic Information Retrieval web ...
PDF
RESTful API by abubakar
PDF
RIA Data and Security, 2007
Unit 2
Rest surekha
Web-Services-web services-20052025-051043pm.pptx
Restful web services by Sreeni Inturi
REST & RESTful APIs: The State of Confusion
IRJET- Rest API for E-Commerce Site
RESTful Web Services
ReST (Representational State Transfer) Explained
Introduction to webservices
Rest web service
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Mobility Information Series - Webservice Architecture Comparison by RapidValue
REST & SOAP.pptx
Rest api-interview
53 hui homework2
R01765113122
Design and Implementation of SOA Enhanced Semantic Information Retrieval web ...
RESTful API by abubakar
RIA Data and Security, 2007
Ad

More from DEEPIKA T (20)

PDF
PDF
71619109 configuration-management.pdf (1) (1)
PPTX
242296
PPTX
Data mining
PPTX
Parallelizing matrix multiplication
PPTX
Health care in big data analytics
PPTX
Ajax
PPTX
Role of human interaction
PPTX
Basic analtyics & advanced analtyics
PPTX
Soap,Rest&Json
PPTX
Applet (1)
PPTX
Jdbc ja
PPTX
Appletjava
PPTX
Remote method invocation
PPTX
Graph representation
PPTX
PPTX
Presentation2
PPTX
Depth first search [dfs]
PPTX
Topological sort
PPTX
Path compression
71619109 configuration-management.pdf (1) (1)
242296
Data mining
Parallelizing matrix multiplication
Health care in big data analytics
Ajax
Role of human interaction
Basic analtyics & advanced analtyics
Soap,Rest&Json
Applet (1)
Jdbc ja
Appletjava
Remote method invocation
Graph representation
Presentation2
Depth first search [dfs]
Topological sort
Path compression
Ad

Recently uploaded (20)

PDF
faiz-khans about Radiotherapy Physics-02.pdf
PDF
Lecture on Viruses: Structure, Classification, Replication, Effects on Cells,...
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PPT
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
PDF
Nurlina - Urban Planner Portfolio (english ver)
PDF
Fun with Grammar (Communicative Activities for the Azar Grammar Series)
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
semiconductor packaging in vlsi design fab
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PPTX
Macbeth play - analysis .pptx english lit
PPTX
Thinking Routines and Learning Engagements.pptx
PDF
The TKT Course. Modules 1, 2, 3.for self study
PDF
Disorder of Endocrine system (1).pdfyyhyyyy
PDF
1.Salivary gland disease.pdf 3.Bleeding and Clotting Disorders.pdf important
PDF
Literature_Review_methods_ BRACU_MKT426 course material
PDF
Civil Department's presentation Your score increases as you pick a category
PPTX
PLASMA AND ITS CONSTITUENTS 123.pptx
PDF
Controlled Drug Delivery System-NDDS UNIT-1 B.Pharm 7th sem
PDF
Farming Based Livelihood Systems English Notes
DOCX
Ibrahim Suliman Mukhtar CV5AUG2025.docx
faiz-khans about Radiotherapy Physics-02.pdf
Lecture on Viruses: Structure, Classification, Replication, Effects on Cells,...
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
Nurlina - Urban Planner Portfolio (english ver)
Fun with Grammar (Communicative Activities for the Azar Grammar Series)
Environmental Education MCQ BD2EE - Share Source.pdf
semiconductor packaging in vlsi design fab
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
Macbeth play - analysis .pptx english lit
Thinking Routines and Learning Engagements.pptx
The TKT Course. Modules 1, 2, 3.for self study
Disorder of Endocrine system (1).pdfyyhyyyy
1.Salivary gland disease.pdf 3.Bleeding and Clotting Disorders.pdf important
Literature_Review_methods_ BRACU_MKT426 course material
Civil Department's presentation Your score increases as you pick a category
PLASMA AND ITS CONSTITUENTS 123.pptx
Controlled Drug Delivery System-NDDS UNIT-1 B.Pharm 7th sem
Farming Based Livelihood Systems English Notes
Ibrahim Suliman Mukhtar CV5AUG2025.docx

80068

  • 1. By S . Ragavi II MSC[CS] Nadar Saraswathi College of Arts and Science Theni
  • 2. What is REST  REST is acronym for REpresentational State Transfer. It is architectural style for distributed hypermedia systems and was first presented by Roy Fielding in 2000 in his famous dissertation.  Like any other architectural style, REST also does have it’s own 6 guiding constraints which must be satisfied if an interface needs to be referred as RESTful.
  • 3. Restful Methods  POST – This would be used to create a new employee using the RESTful web service  GET - This would be used to get a list of all employee using the RESTful web service  PUT - This would be used to update all employee using the RESTful web service  DELETE - This would be used to delete all employee using the RESTful web service
  • 4. Guiding Principles of REST  Client–server – By separating the user interface concerns from the data storage concerns, we improve the portability of the user interface across multiple platforms and improve scalability by simplifying the server components.  Stateless – Each request from client to server must contain all of the information necessary to understand the request, and cannot take advantage of any stored context on the server. Session state is therefore kept entirely on the client.  Cacheable – Cache constraints require that the data within a response to a request be implicitly or explicitly labeled as cacheable or non-cacheable. If a response is cacheable, then a client cache is given the right to reuse that response data for later, equivalent requests.
  • 5.  Uniform interface – By applying the software engineering principle of generality to the component interface, the overall system architecture is simplified and the visibility of interactions is improved. In order to obtain a uniform interface, multiple architectural constraints are needed to guide the behavior of components. REST is defined by four interface constraints: identification of resources; manipulation of resources through representations; self-descriptive messages; and, hypermedia as the engine of application state.  Layered system – The layered system style allows an architecture to be composed of hierarchical layers by constraining component behavior such that each component cannot “see” beyond the immediate layer with which they are interacting.  Code on demand (optional) – REST allows client functionality to be extended by downloading and executing code in the form of applets or scripts. This simplifies clients by reducing the number of features required to be pre-implemented.
  • 6. What is JSON  JSON (JavaScript Object Notation) is most widely used data format for data interchange on the web. This data interchange can happen between two computer applications at different geographical locations or running within the same machine.  The good thing is that JSON is a human-readable as well as a machine-readable format. So while applications/libraries can parse the JSON documents – humans can also look at the data and derive the meaning from it.  All modern programming languages (e.g., Java, JavaScript, Ruby, C#, PHP, Python, and Groovy) and application platforms provide excellent support for producing (serializing) and consuming (deserializing) JSON data.
  • 7. JSON File and MIME Type  The standard file type for storing a JSON document in the filesystem is .json.  JSON’s Internet Assigned Numbers Authority (IANA) media (or MIME) type is application/json
  • 8. JSON Document  A JSON document may contain text, curly braces, square brackets, colons, commas, double quotes, and maybe a few other characters.  Primarily, a valid JSON document can contain two structures:  An Object surrounded by curly braces and containing multiple name/value pairs. In various languages, this is realized as an record, struct, dictionary, hash table, keyed list, or associative array.  An Array or Ordered list of values surrounded by square brackets. In most languages, this is realized as an vector, list, or sequence
  • 9. Difference between REST API and JSON  JSON is a format, commonly associated with REST services, even though REST itself is format agnostic. That means that, while JSON is the most commonly used format, REST allows you to use XML, HTML, pure text, and even custom formats.