Java EE: RESTful Service with JAX-RS 2.0
2h 18mIntermediate2017-06-05
Authors

Alex Theedom
Enterprise Developer, Published Author, Trainer
Course details
The ability to successfully build a RESTful web service is an essential skill in today's Internet-dominated industry. In this course, learn how to develop a RESTful client and server application using the Java Enterprise Edition implementation of the REST architectural style, JAX-RS API 2.0. This powerful and fully-featured API enshrines industry best practices as it integrates seamlessly with other essential APIs such as Bean Validation and JSON Processing.
Join Alex Theedom as he guides you through a wide range of topics, including how to define resource endpoints, how to add dynamism to your application with hypermedia, how to maintain data integrity with Bean Validation, and how to process messages with the JSON Processing API. Once you have completed this course, you'll be ready to develop your own client and server RESTful APIs.
Learning objectives
Discover the extent of JAX-RS's features
Use the annotation methodology
Use the inheritance methodology
Define a REST contract and API root
Create the REST resource entity
Create the REST resource methods
Understand consumers and producers
Work with different media types
Define and work with path parameters
Build a REST response and handle exceptions
Implement Bean Validation and manage failures
Create a RESTful client that consumes the web service
Use JSON-P API with the REST client
Implement hypermedia (HATEOAS)
Join Alex Theedom as he guides you through a wide range of topics, including how to define resource endpoints, how to add dynamism to your application with hypermedia, how to maintain data integrity with Bean Validation, and how to process messages with the JSON Processing API. Once you have completed this course, you'll be ready to develop your own client and server RESTful APIs.
Learning objectives
Discover the extent of JAX-RS's features
Use the annotation methodology
Use the inheritance methodology
Define a REST contract and API root
Create the REST resource entity
Create the REST resource methods
Understand consumers and producers
Work with different media types
Define and work with path parameters
Build a REST response and handle exceptions
Implement Bean Validation and manage failures
Create a RESTful client that consumes the web service
Use JSON-P API with the REST client
Implement hypermedia (HATEOAS)
Skills covered
RESTJava EEBack-End Web DevelopmentJavaOracleFront-End Web DevelopmentWeb DevelopmentOpen SourceOne-Off
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - How to use the exercise files
- 04 - Challenges
1. JAX-RS 2.0
- 05 - JAX-RS 2.0 introduction
- 06 - REST introduction
- 07 - Headline features of JAX-RS 2.0
2. Introduction to Bookshop Application
- 08 - Bookshop application demo
- 09 - Deployment demo
3. Create a REST Resource
- 10 - Define the REST contract
- 11 - Inheritance or XML configuration
- 12 - Define the API root
- 13 - Create the resource entity
- 14 - Create the resource methods
- 15 - Path parameters
- 16 - Add path paramaters
- 17 - @Consumes and @Produces
- 18 - Add the media types
- 19 - Challenge - Add resource methods
- 20 - Solution - Add resource methods
4. Responses and HATEOAS
- 21 - The HTTP response
- 22 - Build a response
- 23 - How to handle errors
- 24 - Implement an exception manager
- 25 - Work with HATEOAS
- 26 - HATEOAS and JAX-RS
- 27 - Add HATEOAS to the resource
- 28 - Challenge - Add exception handlers
- 29 - Solution - Add exception handlers
5. Bean Validation API
- 30 - Bean Validation introduction
- 31 - Work with Bean Validation
- 32 - Manage validation failures
- 33 - Implement validation failure management
- 34 - Challenge - Add validation annotations
- 35 - Solution - Add validation annotations
6. Create a REST Client
- 36 - Make a request
- 37 - Implement a client
- 38 - Process the response with JSONP
- 39 - Use JSONP
- 40 - HATEOAS and the frontend
- 41 - Implement HATEOAS
Conclusion
- 42 - Next steps