From the course: Learning Quarkus

Unlock the full course today

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

REST client with Quarkus

REST client with Quarkus

From the course: Learning Quarkus

Start my 1-month free trial

REST client with Quarkus

- [Instructor] As I stated earlier, Quarkus ships with a powerful tool to make web service calls from within your application to restful web services. The rest client. Let's take a look at how to use it. So once again, back in our ID, I'm going to create once again another new module. Use whatever method you're comfortable with. This one, I'm going to call room batch. Now there's a couple elements that we need. We need rest client. And we'll use Jackson this time. Okay, So from our room service, we're going to copy a couple of values here. We're going to bring over the room, and put it same level. We're going to get rid of the example resource. All right, so now in our root package here, we going to create a new interface. And we're going to call it room service rest. And again, it's an interface. Now we annotate this, just like we would if this was an actual web service. So at path, and it's going to be slash…

Contents