From the course: Java EE: RESTful Service with JAX-RS 2.0

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Make a request

Make a request

From the course: Java EE: RESTful Service with JAX-RS 2.0

Start my 1-month free trial

Make a request

- [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…

Contents