From the course: Java EE 8 Essential Training

Unlock the full course today

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

JAX-RS client posts

JAX-RS client posts - Java EE Tutorial

From the course: Java EE 8 Essential Training

Start my 1-month free trial

JAX-RS client posts

- [Instructor] Within JAX-RS there is a fluent client API that we can use to make calls against a restful API. Now, in this lesson, we're going to take a look at how to do that, but first, let's look at it from a high level. In the last lesson, we were building out our rest API implementation. So we were the providers of the rest API. When we use the client, we're looking at it from a consumer of the API, so we're an individual that is interested in making a call to that API to maybe get some data or to perform some operation. Now, one thing I'm going to point out before we move ahead is that on our resource that we created last time, I've gone ahead and added some data persistence, in order to kind of support our work and provide state within our rest API. So you'll notice that, like for example, for this create method, I've gone ahead and persisted the inventory item that is passed into this method. And you'll see that…

Contents