SlideShare a Scribd company logo
Dian Wahyu Aditya [email_address] REST v 2.3
Agenda REST Overview
Core Concept
Web Service Demo Struts2
Spring MVC
Android Client
REST? Representational State Transfer # Defined by Roy T. Fielding in his doctoral dissertation. (Co-founder of Apache HTTP Project) An Architectural Style
REST? Representational State Transfer #Use HTTP, URI, and other web standard correctly Web Used Correctly
REST CORE CONCEPT
REST: Core Concept “ Things are Resources” Resources  can be items of information (a blog entry) or informational descriptions of real things (a blog author) RESOURCE
REST: Core Concept “ Resource Have URIs”   Uniform Resource Identifier  are unique ids for resources. RESOURCE U R I
REST: Core Concept “ Resources have Representation” Representations  can have different formats (HTML, XML, JSON). RESOURCE U R I REPRESENTATION REPRESENTATION
REST: Core Concept “ Representations have URLs” Uniform Resource Locators  describe how to get to a representation of a resource, they include protocol, hostname, path and extra information. RESOURCE U R I REPRESENTATION REPRESENTATION URL URL URL
REST: Core Concept “ Client interact via Verbs” RESOURCE U R I REPRESENTATION REPRESENTATION URL URL URL POST GET PUT DELETE
RESTFul Web Service
RESTFul Web Service “ Use HTTP Standard Methods” Retrieve GET Update PUT Create POST Remove DELETE
RESTFul Web Service “ Use Standard Methods / Uniform Interface” Safe GET Idempotent PUT Idempotent DELETE
RESTFul Web Service “ Use Standard Methods / Uniform Interface” Safe method # There are no side-effects # The requested resource stays unmodified Idempotent # Issuing the same request multiple times yields the same result
RESTFul Web Service “ All About the URIs” http://blog.mervpolis.com/roller/dwx http://blog.mervpolis.com/roller/dwx/category/Java http://blog.mervpolis.com/roller/dwx/date/201009 http://blog.mervpolis.com/roller/dwx/entry/hibernate_event_listener Directory Structure-like URIs To the Point Easy to Guess
RESTFul Web Service GET /deleteuser?name=Robert HTTP/1.1 DELETE /user/Robert HTTP/1.1

More Related Content

PDF
From Open Source to Open API with Restlet
Restlet
 
PDF
Getting Started with Rails (3)
RORLAB
 
PPTX
10x10 on <link />
cbatiloiii
 
PPTX
REST Easy with AngularJS - ng-grid CRUD EXAMPLE
reneechemel
 
PDF
All about elasticsearch language clients
Enterprise Search Warsaw Meetup
 
PPT
Poli 2.0 - APIs
Mircea Paşoi
 
PPTX
Introduction To REST
rainynovember12
 
ODP
The Internet as Web Services: introduction to ReST
Bruno Kessler Foundation
 
From Open Source to Open API with Restlet
Restlet
 
Getting Started with Rails (3)
RORLAB
 
10x10 on <link />
cbatiloiii
 
REST Easy with AngularJS - ng-grid CRUD EXAMPLE
reneechemel
 
All about elasticsearch language clients
Enterprise Search Warsaw Meetup
 
Poli 2.0 - APIs
Mircea Paşoi
 
Introduction To REST
rainynovember12
 
The Internet as Web Services: introduction to ReST
Bruno Kessler Foundation
 

What's hot (16)

PDF
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
PDF
Building Awesome APIs with Lumen
Kit Brennan
 
ODP
Services Stanford 2012
Yuriy Gerasimov
 
PPT
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Nguyen Duc Phu
 
PDF
Learn REST in 18 Slides
Suraj Gupta
 
PPTX
Understanding REST APIs in 5 Simple Steps
Tessa Mero
 
PPTX
Endpoint node.js framework presentation
abresas
 
PDF
Building RESTful Applications
Nabeel Yoosuf
 
PDF
Building RESTful applications using Spring MVC
IndicThreads
 
PPT
Web crawler
anusha kurapati
 
PDF
Dicoding Developer Coaching #20: Android | Apa itu Content Provider?
DicodingEvent
 
PPTX
Web Quick Start: Under the Covers
Alfresco Software
 
PDF
5. web api 2 aspdotnet-mvc5-slides
MasterCode.vn
 
PPTX
Stefaan Ponnet, Fusebox
nascomgenk
 
PPTX
Securing RESTful Payment APIs Using OAuth 2
Jonathan LeBlanc
 
PPTX
Rest API
Rohana K Amarakoon
 
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
Building Awesome APIs with Lumen
Kit Brennan
 
Services Stanford 2012
Yuriy Gerasimov
 
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Nguyen Duc Phu
 
Learn REST in 18 Slides
Suraj Gupta
 
Understanding REST APIs in 5 Simple Steps
Tessa Mero
 
Endpoint node.js framework presentation
abresas
 
Building RESTful Applications
Nabeel Yoosuf
 
Building RESTful applications using Spring MVC
IndicThreads
 
Web crawler
anusha kurapati
 
Dicoding Developer Coaching #20: Android | Apa itu Content Provider?
DicodingEvent
 
Web Quick Start: Under the Covers
Alfresco Software
 
5. web api 2 aspdotnet-mvc5-slides
MasterCode.vn
 
Stefaan Ponnet, Fusebox
nascomgenk
 
Securing RESTful Payment APIs Using OAuth 2
Jonathan LeBlanc
 
Ad

Similar to RESTFul WebApp Concept (20)

PDF
Creating Restful Web Services with restish
Grig Gheorghiu
 
PPTX
Introduction to Web Services
Jeffrey Anderson
 
PPTX
Rest webservice ppt
sinhatanay
 
PPTX
REST & RESTful Web Services
Halil Burak Cetinkaya
 
PPT
ROA.ppt
KGSCSEPSGCT
 
PPTX
RESTful_Web_Services_Presentation (1).pptx
onlinesewatest
 
PDF
BeJUG JAX-RS Event
Stephan Janssen
 
PPT
RESTful SOA - 中科院暑期讲座
Li Yi
 
PDF
Rest web services
Paulo Gandra de Sousa
 
PPSX
Restful web services rule financial
Rule_Financial
 
PPTX
Unerstanding and Using RESTful APIs
SocialDevCamp Chicago
 
PPTX
RESTful Web Services
adeppathondur
 
PPTX
Understanding and Using Rest APIs (SocialDevCamp Chicago 2009)
Pete Morano
 
PPT
RESTful services
gouthamrv
 
PPTX
Rest with Java EE 6 , Security , Backbone.js
Carol McDonald
 
PPTX
Rest
Carol McDonald
 
PPTX
REST Presentation
Sarwajit Kumar
 
PDF
Introduction to Restful Web Services
weili_at_slideshare
 
PDF
REST Basics
Ivano Malavolta
 
PPTX
RESTful APIs in .NET
Greg Sohl
 
Creating Restful Web Services with restish
Grig Gheorghiu
 
Introduction to Web Services
Jeffrey Anderson
 
Rest webservice ppt
sinhatanay
 
REST & RESTful Web Services
Halil Burak Cetinkaya
 
ROA.ppt
KGSCSEPSGCT
 
RESTful_Web_Services_Presentation (1).pptx
onlinesewatest
 
BeJUG JAX-RS Event
Stephan Janssen
 
RESTful SOA - 中科院暑期讲座
Li Yi
 
Rest web services
Paulo Gandra de Sousa
 
Restful web services rule financial
Rule_Financial
 
Unerstanding and Using RESTful APIs
SocialDevCamp Chicago
 
RESTful Web Services
adeppathondur
 
Understanding and Using Rest APIs (SocialDevCamp Chicago 2009)
Pete Morano
 
RESTful services
gouthamrv
 
Rest with Java EE 6 , Security , Backbone.js
Carol McDonald
 
REST Presentation
Sarwajit Kumar
 
Introduction to Restful Web Services
weili_at_slideshare
 
REST Basics
Ivano Malavolta
 
RESTful APIs in .NET
Greg Sohl
 
Ad

Recently uploaded (20)

PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Doc9.....................................
SofiaCollazos
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Software Development Methodologies in 2025
KodekX
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Doc9.....................................
SofiaCollazos
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
The Future of Artificial Intelligence (AI)
Mukul
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 

RESTFul WebApp Concept

  • 1. Dian Wahyu Aditya [email_address] REST v 2.3
  • 7. REST? Representational State Transfer # Defined by Roy T. Fielding in his doctoral dissertation. (Co-founder of Apache HTTP Project) An Architectural Style
  • 8. REST? Representational State Transfer #Use HTTP, URI, and other web standard correctly Web Used Correctly
  • 10. REST: Core Concept “ Things are Resources” Resources can be items of information (a blog entry) or informational descriptions of real things (a blog author) RESOURCE
  • 11. REST: Core Concept “ Resource Have URIs” Uniform Resource Identifier are unique ids for resources. RESOURCE U R I
  • 12. REST: Core Concept “ Resources have Representation” Representations can have different formats (HTML, XML, JSON). RESOURCE U R I REPRESENTATION REPRESENTATION
  • 13. REST: Core Concept “ Representations have URLs” Uniform Resource Locators describe how to get to a representation of a resource, they include protocol, hostname, path and extra information. RESOURCE U R I REPRESENTATION REPRESENTATION URL URL URL
  • 14. REST: Core Concept “ Client interact via Verbs” RESOURCE U R I REPRESENTATION REPRESENTATION URL URL URL POST GET PUT DELETE
  • 16. RESTFul Web Service “ Use HTTP Standard Methods” Retrieve GET Update PUT Create POST Remove DELETE
  • 17. RESTFul Web Service “ Use Standard Methods / Uniform Interface” Safe GET Idempotent PUT Idempotent DELETE
  • 18. RESTFul Web Service “ Use Standard Methods / Uniform Interface” Safe method # There are no side-effects # The requested resource stays unmodified Idempotent # Issuing the same request multiple times yields the same result
  • 19. RESTFul Web Service “ All About the URIs” http://blog.mervpolis.com/roller/dwx http://blog.mervpolis.com/roller/dwx/category/Java http://blog.mervpolis.com/roller/dwx/date/201009 http://blog.mervpolis.com/roller/dwx/entry/hibernate_event_listener Directory Structure-like URIs To the Point Easy to Guess
  • 20. RESTFul Web Service GET /deleteuser?name=Robert HTTP/1.1 DELETE /user/Robert HTTP/1.1
  • 21. RESTFul Web Service “ Uniform Interface”
  • 22. RESTFul Web Service “ Stateless” GET /resources/getNextPage? HTTP/1.1 Client Web service <?xml version=”1.0” ?> <rsp stat=”ok”> <resource id=”1” /> <resource id=”2” /> ... <rsp> PreviousPage++; NextPage= previousPage; return nextPage Stateful design
  • 23. RESTFul Web Service “ Stateless” GET /resources/?page=2 HTTP/1.1 Client Web service <?xml version=”1.0” ?> <rsp page=”2” nextPage = “3” > <resource id=”1” /> <resource id=”2” /> ... <rsp> getPage(2); Stateless design
  • 24. RESTFul Web Service “ Allow Multiple Representation” GET /technology Host: www.telegraph.co.uk Accept: text/html ;charset=ISO-8859-1 GET /technology /rss Host: www.telegraph.co.uk Accept: text/xml ;charset=UTF-8 <html> ... </html> <rss version=&quot;2.0&quot;> ... </rss>