Example usage:
@ApplicationPath("/")
@OpenAPIDefinition(
info = @Info(
title="AirlinesRatingApp API",
version = "1.0",
termsOfService = "http://airlinesratingapp.com/terms",
contact = @Contact(
name = "AirlinesRatingApp API Support",
url = "http://exampleurl.com/contact",
email = "[email protected]"),
license = @License(
name = "Apache 2.0",
url = "http://www.apache.org/licenses/LICENSE-2.0.html")))
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | Contact
Contact information for the exposed API. |
| public @interface | Info
This annotation provides metadata about the API, and maps to the Info object in OpenAPI Specification 3. |
| public @interface | License
License information for the exposed API. |