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
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Web-based traffic with Quarkus2m 8s
-
(Locked)
RESTful communication with Quarkus3m 48s
-
(Locked)
RESTful implementation with Quarkus5m 15s
-
(Locked)
REST client with Quarkus5m 17s
-
(Locked)
OpenAPI with Quarkus4m 22s
-
(Locked)
GraphQL with Quarkus5m 19s
-
(Locked)
Challenge: Wire HTTP1m 3s
-
(Locked)
Solution: Wire HTTP4m 3s
-
(Locked)
-