Join Alex Theedom for an in-depth discussion in this video Make a request, part of RESTful Service with JAX-RS 2.0.
- [Instructor] We're now going to learn…how JAX-RS provides functionality…that can be used to consume a RESTful API.…We will write code that queries…the resource end point for a book resource.…We will see that the media type…must be set correctly…and how to construct the body of a post…and to ensure that it is…in the expected media format.…So far in this course,…we have accessed our…bookshelf RESTful API via POSTMAN.…This has been very useful…for testing and debugging.…But it's not really very useful…for the end user.…What we want to do…is to provide the RESTful API as a service…to a Bookshelf application.…
The same service can be provided…to other applications…that make requests to the end point…and use the resulting JSON data…in their own applications.…This is commonly how…Microservices communicate with each other…by a RESTful API.…However, in this course,…the client of the RESTful API…is going to be a web application.…Jax-RS provides a very well featured client API…that we're going to use to communicate…with the REST server.…
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.
- 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)
Skill Level Intermediate
WebSocket Programming with Java EEwith Alex Theedom1h 29m Intermediate
1. JAX-RS 2.0
2. Introduction to Bookshop Application
3. Create a REST Resource
4. Responses and HATEOAS
5. Bean Validation API
6. Create a REST Client
Next steps1m 20s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.