SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Background
HTTP Overview
REST - API Overview
Design Constraints
Benefits
Examples
Developed by W3C - World Wide Web Consortium
Technical Architecture Group (TAG) in parallel with HTTP 1.1
Software architecture
Components
Connectors
Data
Architectural properties
Allows for sending documents back & forth on the web.
URL’s Identifies a “Resource”.
/Team - identify all Team
/Team/QA/ABC - identify the Member of a team.
HTTP Verbs
GET / PUT / DELETE / POST
Representations
Response Codes
200 OK
201 Created
500 Internal Server Error
400 Bad Request
404 Not Found
REST – API Stands for?
Request Static Transfer
Remote State Transfer
Remote Stored Transfer
Remote Static Transfer
Correct Answer is…
REpresentational State Transfer
Relies on a
Stateless
Client - Server
Cacheable communications protocol
HTTP protocol is used.
Architecture Style for designing networked applications
The Design Constraints for REST – API style.
Uniform Interface
Simplifies and Decouples the architecture.
Enables each part to evolve independently.
Four guiding principles
Resource-Based
Manipulation of Resources Through Representations
Self-descriptive Messages
Hypermedia as the Engine of Application State (HATEOAS)
Stateless
State to handle the request is contained within the request itself.
The URI uniquely identifies the resource and the body contains the state
(or state change) of that resource.
After Server Process - communicated back to the client via headers,
status and response body.
Enables greater scalability - server does not have to maintain, update or
communicate that session state.
Load balancers don't have to worry about session affinity for stateless
systems
Cacheable
Well-managed caching partially or completely eliminates some client–
server interactions, further improving scalability and performance.
Client-Server
Uniform interface separates clients from servers.
Clients are not concerned with data storage - portability of client code is
improved.
Servers are not concerned with the user interface or user state - servers
can be simpler and more scalable
Layered System
A client cannot connected directly to the end server.
A client may connected with Server via Intermediary servers.
Intermediary servers may improve system scalability by enabling load-
balancing.
Helps to enforce security policies.
Network Performance
Efficiency - Caching data
Scalability - Gateway, Proxy and layered
User Perceived Performance - Caching
pre-fetched information
- Eg: Form Validation
Introduction to REST - API
Introduction to REST - API

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Understanding REST
Understanding RESTUnderstanding REST
Understanding REST
 
Introduction to API
Introduction to APIIntroduction to API
Introduction to API
 
Rest web services
Rest web servicesRest web services
Rest web services
 
Soap vs rest
Soap vs restSoap vs rest
Soap vs rest
 
REST API and CRUD
REST API and CRUDREST API and CRUD
REST API and CRUD
 
Api presentation
Api presentationApi presentation
Api presentation
 
HTTP request and response
HTTP request and responseHTTP request and response
HTTP request and response
 
Express JS Rest API Tutorial
Express JS Rest API TutorialExpress JS Rest API Tutorial
Express JS Rest API Tutorial
 
What is an API?
What is an API?What is an API?
What is an API?
 
Simple object access protocol(soap )
Simple object access protocol(soap )Simple object access protocol(soap )
Simple object access protocol(soap )
 
REST API
REST APIREST API
REST API
 
Postman.ppt
Postman.pptPostman.ppt
Postman.ppt
 
API for Beginners
API for BeginnersAPI for Beginners
API for Beginners
 
Web servers
Web serversWeb servers
Web servers
 
API Presentation
API PresentationAPI Presentation
API Presentation
 
Restful api
Restful apiRestful api
Restful api
 
SOAP-based Web Services
SOAP-based Web ServicesSOAP-based Web Services
SOAP-based Web Services
 
Basics of HTTP - Nafis Fuad
Basics of HTTP - Nafis FuadBasics of HTTP - Nafis Fuad
Basics of HTTP - Nafis Fuad
 
Http
HttpHttp
Http
 
REST - Representational State Transfer
REST - Representational State TransferREST - Representational State Transfer
REST - Representational State Transfer
 

Ähnlich wie Introduction to REST - API

Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecture
rahmed_sct
 
Rest and Sling Resolution
Rest and Sling ResolutionRest and Sling Resolution
Rest and Sling Resolution
DEEPAK KHETAWAT
 
REST - Representational state transfer
REST - Representational state transferREST - Representational state transfer
REST - Representational state transfer
Tricode (part of Dept)
 

Ähnlich wie Introduction to REST - API (20)

Rest surekha
Rest surekhaRest surekha
Rest surekha
 
Cordova training - Day 8 - REST API's
Cordova training - Day 8 - REST API'sCordova training - Day 8 - REST API's
Cordova training - Day 8 - REST API's
 
Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecture
 
Rest API Automation with REST Assured
Rest API Automation with REST AssuredRest API Automation with REST Assured
Rest API Automation with REST Assured
 
200211 Fielding Apachecon
200211 Fielding Apachecon200211 Fielding Apachecon
200211 Fielding Apachecon
 
Rest introduction
Rest introductionRest introduction
Rest introduction
 
REST Introduction.ppt
REST Introduction.pptREST Introduction.ppt
REST Introduction.ppt
 
Rest and Sling Resolution
Rest and Sling ResolutionRest and Sling Resolution
Rest and Sling Resolution
 
REST - Representational state transfer
REST - Representational state transferREST - Representational state transfer
REST - Representational state transfer
 
ReST (Representational State Transfer) Explained
ReST (Representational State Transfer) ExplainedReST (Representational State Transfer) Explained
ReST (Representational State Transfer) Explained
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Time to REST: testing web services
Time to REST: testing web servicesTime to REST: testing web services
Time to REST: testing web services
 
Silicon India Java Conference: Building Scalable Solutions For Commerce Silic...
Silicon India Java Conference: Building Scalable Solutions For Commerce Silic...Silicon India Java Conference: Building Scalable Solutions For Commerce Silic...
Silicon India Java Conference: Building Scalable Solutions For Commerce Silic...
 
JavaEE6 my way
JavaEE6 my wayJavaEE6 my way
JavaEE6 my way
 
Mini-Training: Let's have a rest
Mini-Training: Let's have a restMini-Training: Let's have a rest
Mini-Training: Let's have a rest
 
A Deep Dive into RESTful API Design Part 1
A Deep Dive into RESTful API Design Part 1A Deep Dive into RESTful API Design Part 1
A Deep Dive into RESTful API Design Part 1
 
Developing Web Services With Oracle Web Logic Server
Developing Web Services With Oracle Web Logic ServerDeveloping Web Services With Oracle Web Logic Server
Developing Web Services With Oracle Web Logic Server
 
REST != WebAPI
REST != WebAPIREST != WebAPI
REST != WebAPI
 
REST & RESTful APIs: The State of Confusion
REST & RESTful APIs: The State of ConfusionREST & RESTful APIs: The State of Confusion
REST & RESTful APIs: The State of Confusion
 
C# REST API
C# REST APIC# REST API
C# REST API
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Introduction to REST - API

  • 1.
  • 2. Background HTTP Overview REST - API Overview Design Constraints Benefits Examples
  • 3. Developed by W3C - World Wide Web Consortium Technical Architecture Group (TAG) in parallel with HTTP 1.1 Software architecture Components Connectors Data Architectural properties
  • 4. Allows for sending documents back & forth on the web. URL’s Identifies a “Resource”. /Team - identify all Team /Team/QA/ABC - identify the Member of a team. HTTP Verbs GET / PUT / DELETE / POST Representations Response Codes 200 OK 201 Created 500 Internal Server Error 400 Bad Request 404 Not Found
  • 5. REST – API Stands for? Request Static Transfer Remote State Transfer Remote Stored Transfer Remote Static Transfer Correct Answer is… REpresentational State Transfer
  • 6. Relies on a Stateless Client - Server Cacheable communications protocol HTTP protocol is used. Architecture Style for designing networked applications The Design Constraints for REST – API style.
  • 7. Uniform Interface Simplifies and Decouples the architecture. Enables each part to evolve independently. Four guiding principles Resource-Based Manipulation of Resources Through Representations Self-descriptive Messages Hypermedia as the Engine of Application State (HATEOAS)
  • 8. Stateless State to handle the request is contained within the request itself. The URI uniquely identifies the resource and the body contains the state (or state change) of that resource. After Server Process - communicated back to the client via headers, status and response body. Enables greater scalability - server does not have to maintain, update or communicate that session state. Load balancers don't have to worry about session affinity for stateless systems
  • 9. Cacheable Well-managed caching partially or completely eliminates some client– server interactions, further improving scalability and performance. Client-Server Uniform interface separates clients from servers. Clients are not concerned with data storage - portability of client code is improved. Servers are not concerned with the user interface or user state - servers can be simpler and more scalable
  • 10. Layered System A client cannot connected directly to the end server. A client may connected with Server via Intermediary servers. Intermediary servers may improve system scalability by enabling load- balancing. Helps to enforce security policies.
  • 11. Network Performance Efficiency - Caching data Scalability - Gateway, Proxy and layered User Perceived Performance - Caching pre-fetched information - Eg: Form Validation