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.
OpenAPI with Quarkus
- [Instructor] A web service is only as good as its documentation. The OpenAPI spec allows you to easily document an existing service or create the documentation first and generate a service from it which is usually how I use it. But let's take a look at how to do the former. So let's go into our room service application. And the first thing we need to do is we need to bring in a dependency. Now we could definitely add it to the POM, but I want to show you another way that Quarkus allows you to add dependencies. So I'm going to to jump to the terminal real quick. So in the terminal I'm going to navigate to our room service application. And from here, I'm going to do a Maven command. Quarkus add extension, dash D extensions equals, Quarkus smallrye, OpenAPI, and this is going to use the plugin to add an extension. So I definitely could've added it to the POM, but again I wanted to show you what you can do with the…
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)
-