SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
habib_786
 
Rest presentation
Rest  presentationRest  presentation
Rest presentation
srividhyau
 

La actualidad más candente (20)

REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developers
 
Understanding REST
Understanding RESTUnderstanding REST
Understanding REST
 
Rest API
Rest APIRest API
Rest API
 
REST & RESTful Web Services
REST & RESTful Web ServicesREST & RESTful Web Services
REST & RESTful Web Services
 
Restful Web Services
Restful Web ServicesRestful Web Services
Restful Web Services
 
Restful api
Restful apiRestful api
Restful api
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
 
REST API
REST APIREST API
REST API
 
An Introduction To REST API
An Introduction To REST APIAn Introduction To REST API
An Introduction To REST API
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
 
Rest API Security
Rest API SecurityRest API Security
Rest API Security
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
 
Attacking REST API
Attacking REST APIAttacking REST API
Attacking REST API
 
Swagger
SwaggerSwagger
Swagger
 
What is an API?
What is an API?What is an API?
What is an API?
 
Rest presentation
Rest  presentationRest  presentation
Rest presentation
 
Web API Basics
Web API BasicsWeb API Basics
Web API Basics
 
Introduction to API
Introduction to APIIntroduction to API
Introduction to API
 
Api presentation
Api presentationApi presentation
Api presentation
 
API Design- Best Practices
API Design-   Best PracticesAPI Design-   Best Practices
API Design- Best Practices
 

Similar a 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)
 

Similar a 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
 
REST - Representational State Transfer
REST - Representational State TransferREST - Representational State Transfer
REST - Representational State Transfer
 
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
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
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
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
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
 
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
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

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