From the course: Learning Quarkus

Unlock the full course today

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

OpenAPI with Quarkus

OpenAPI with Quarkus

From the course: Learning Quarkus

Start my 1-month free trial

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…

Contents