OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.16k stars 597 forks source link

BETA BLOG - MicroProfile OpenAPI 3.1 #21769

Open Azquelt opened 2 years ago

Azquelt commented 2 years ago

The information you provide here will be included in the Open Liberty beta blog post (example), which will be published on openliberty.io/blog/, and potentially elsewhere, to promote this beta feature/function of Open Liberty. For this post to be included in the beta issue please make sure that this is completed by the end of Friday following the GM (Wednesday).

Please provide the following information the week before the GA/beta date (to allow for review and publishing):

  1. Which Liberty feature(s) does your update relate to?

    Human-readable name (eg WebSockets feature): MicroProfile OpenAPI 3.1

    Short feature name (eg websockets-1.0): mpOpenAPI-3.1

  2. Who is the target persona? Who do you expect to use the update? eg application developer, operations.

    Mostly application developers

  3. Write a paragraph to summarises the update, including the following points:

OpenAPI is a standardised way of documenting REST APIs in a JSON or YAML format. MicroProfile OpenAPI helps you generate and serve OpenAPI documentation for your REST applications built using JAX-RS or Jakarta restfulWS. This can be useful for developers to test out the API during development, or for people using the API in production.

To use it, add the mpOpenAPI-3.1 feature to your server.xml, deploy your rest application and then visit /openapi on your liberty server to view the OpenAPI documentation, or visit /openapi/ui for a user interface that lets you browse through it. You can enhance the documentation using annotations to add things like textual descriptions to each method. The annotations are available as a maven dependency:

<dependency>
    <groupId>org.eclipse.microprofile.openapi</groupId>
    <artifactId>microprofile-openapi-api</artifactId>
    <version>3.1-RC2</version>
</dependency>

Version 3.1 is a small release which includes:

More information about MicroProfile OpenAPI can be found in

What happens next?

Azquelt commented 2 years ago

I will be out for the next week, please contact @tevans78 for questions or review.

Azquelt commented 2 years ago

Related epic: #20040