Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Provider Logo

Java EE: RESTful Service with JAX-RS 2.0

via LinkedIn Learning

Overview

Learn how to develop a simple RESTful web service and REST client with the Java EE JAX-RS 2.0 API.

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.

Syllabus

Introduction
  • Welcome
  • What you should know
  • How to use the exercise files
  • Challenges
1. JAX-RS 2.0
  • JAX-RS 2.0 introduction
  • REST introduction
  • Headline features of JAX-RS 2.0
2. Introduction to Bookshop Application
  • Bookshop application demo
  • Deployment demo
3. Create a REST Resource
  • Define the REST contract
  • Inheritance or XML configuration
  • Define the API root
  • Create the resource entity
  • Create the resource methods
  • Path parameters
  • Add path paramaters
  • @Consumes and @Produces
  • Add the media types
  • Challenge: Add resource methods
  • Solution: Add resource methods
4. Responses and HATEOAS
  • The HTTP response
  • Build a response
  • How to handle errors
  • Implement an exception manager
  • Work with HATEOAS
  • HATEOAS and JAX-RS
  • Add HATEOAS to the resource
  • Challenge: Add exception handlers
  • Solution: Add exception handlers
5. Bean Validation API
  • Bean Validation introduction
  • Work with Bean Validation
  • Manage validation failures
  • Implement validation failure management
  • Challenge: Add validation annotations
  • Solution: Add validation annotations
6. Create a REST Client
  • Make a request
  • Implement a client
  • Process the response with JSONP
  • Use JSONP
  • HATEOAS and the frontend
  • Implement HATEOAS
Conclusion
  • Next steps

Taught by

Alex Theedom

Related Courses

Reviews

0.0 rating, based on 0 reviews

Start your review of Java EE: RESTful Service with JAX-RS 2.0

Never stop learning Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free