August 2019
Intermediate to advanced
256 pages
6h 43m
English
You can provide OpenAPI elements via Java POJOs (Plain Old Java Objects) by using the MicroProfile OpenAPI programming model. The complete set of models is described in the org.eclipse.microprofile.openapi.models package. You can read more about it at https://github.com/eclipse/microprofile-open-api/tree/master/api/src/main/java/org/eclipse/microprofile/openapi/models.
You can create an OpenAPI tree by using OASFactory. Refer to the following code block by way of an example:
OASFactory.createObject(Info.class).title("Weather") .description("Weather APIs").version("1.0.0");To bootstrap the OpenAPI model tree, you can use the OASModelReader interface. You can then create an implementation of this interface and register it ...
Read now
Unlock full access