RESTEasy
Hiten Pratap Singh
hiten@fintechlabs.in
https://github.com/hitenpratap
1. Introduction
2. What is & Why REST?
3. Features of RESTEasy
4. Content Negotiation
5. Annotations
6. Demo
Agenda
Introduction
● A JBoss project
● Helps build RESTful Java applications
● An implementation of the JAX-RS 2.0 specification
● Portable implementation that can run in any servlet container
● Other JAX-RS implementations: Jersey & Restlet
What is REST?
● REpresentational State Transfer
● Conceptualised by Roy Fielding
● Addressable resources
● Uniform, constrained interface
● Representation oriented
● Stateless communication
● Evolved with HTTP 1.1
● Not a protocol, an interface, an API or an replacement for SOAP
Why REST?
● Fixed well defined verbs i.e. GET, POST, DELETE etc
● Focus on resources not services
● Different REST endpoints “feel consistent”
● Follows architectural style
● Scalable
● Easily readable & understandable.
Features of RESTEasy
● Portable to Tomcat and many other app-server
● Rich set of providers for: XML, JSON, YAML, Fastinfoset, Multipart, XOP,
Atom, etc.
● GZIP content-encoding
● Rich interceptor model.
● EJB, Seam, Guice, Spring, and Spring MVC integration
● Lightweight
● Security
Content Negotiation
Annotations
● @Path
● @Produces
● @Consumes
● @GET, @POST, @DELETE, @PUT
● @PathParam
● @QueryParam
And many more…
Demo...
Thank You
Hiten Pratap Singh
hiten@fintechlabs.in
https://github.com/hitenpratap
References
● https://www.slideshare.net/jbugrome/javadayiv-leoncini-writing-restful-appli
cations-with-resteasy
● https://www.slideshare.net/michaelneale/sjug-march-2010-restful-design
● https://www.slideshare.net/desmax74/rest-easyjugmaggio2010

RESTEasy