Annotation Type ExternalDocumentation
This annotation allows referencing an external resource for extended documentation.
When it is applied to a method the value of the annotation is added to the corresponding OpenAPI operation definition.
As of version 4.2 of the MicroProfile OpenAPI specification, use of this annotation on a type is deprecated. While
implementations may continue to provide the previously-specified support for setting the documentation in the OpenAPI
document root's externalDocs property from this annotation, that functionality is neither required nor
recommended by the MicroProfile OpenAPI specification. Developers are instead encouraged to use the
externalDocs property of the @OpenAPIDefinition
directly.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA short description of the target documentation.List of extensions to be added to theExternalDocumentationmodel corresponding to the containing annotation.The URL for the target documentation.
-
Element Details
-
description
String descriptionA short description of the target documentation.- Returns:
- the documentation description
- Default:
- ""
-
url
String urlThe URL for the target documentation. Value must be in the format of a URL.- Returns:
- the documentation URL
- Default:
- ""
-
extensions
Extension[] extensionsList of extensions to be added to theExternalDocumentationmodel corresponding to the containing annotation.- Returns:
- array of extensions
- Since:
- 3.1
- Default:
- {}
-