Top Description Methods
org.eclipse.microprofile.openapi.annotations

public @Interface Components

extends Annotation
Annotations
@Target
@Retention:RUNTIME
@Inherited
Imports
java.lang.annotation.Inherited, .Retention, .RetentionPolicy, .Target, org.eclipse.microprofile.openapi.annotations.callbacks.Callback, org.eclipse.microprofile.openapi.annotations.extensions.Extension, org.eclipse.microprofile.openapi.annotations.headers.Header, org.eclipse.microprofile.openapi.annotations.links.Link, org.eclipse.microprofile.openapi.annotations.media.ExampleObject, .Schema, org.eclipse.microprofile.openapi.annotations.parameters.Parameter, .RequestBody, org.eclipse.microprofile.openapi.annotations.responses.APIResponse, org.eclipse.microprofile.openapi.annotations.security.SecurityScheme

Describes the Components object that holds various reusable objects for different aspects of the OpenAPI Specification (OAS).
See Also
OpenAPI Specification Components Object

Method Summary

Modifier and TypeMethod and Description
public Callback[]

Returns:

the reusable Callback objects.
callbacks
()

An object to hold reusable Callback Objects.

public ExampleObject[]

Returns:

the reusable Example objects.
examples
()

An object to hold reusable Example Objects.

public Extension[]

Returns:

array of extensions
extensions
()

List of extensions to be added to the Components model corresponding to the containing annotation.

public Header[]

Returns:

the reusable Header objects.
headers
()

An object to hold reusable Header Objects.

public Parameter[]

Returns:

the reusable Parameter objects.
parameters
()

An object to hold reusable Parameter Objects.

public PathItem[]

Returns:

the reusable PathItem objects.
pathItems
()

An object to hold reusable Path Item Objects.

public RequestBody[]

Returns:

the reusable RequestBody objects.
requestBodies
()

An object to hold reusable Request Body Objects.

public APIResponse[]

Returns:

the reusable ApiResponse objects.
responses
()

An object to hold reusable Response Objects.

public Schema[]

Returns:

the reusable Schema objects.
schemas
()

An object to hold reusable Schema Objects.

public SecurityScheme[]

Returns:

the reusable SecurityScheme objects.
securitySchemes
()

An object to hold reusable Security Scheme Objects.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

callbacksback to summary
public Callback[] callbacks()

An object to hold reusable Callback Objects.

Returns:Callback[]

the reusable Callback objects.

examplesback to summary
public ExampleObject[] examples()

An object to hold reusable Example Objects.

Returns:ExampleObject[]

the reusable Example objects.

extensionsback to summary
public Extension[] extensions()

List of extensions to be added to the Components model corresponding to the containing annotation.

Returns:Extension[]

array of extensions

Since
3.1
headersback to summary
public Header[] headers()

An object to hold reusable Header Objects.

Returns:Header[]

the reusable Header objects.

parametersback to summary
public Parameter[] parameters()

An object to hold reusable Parameter Objects.

Returns:Parameter[]

the reusable Parameter objects.

pathItemsback to summary
public PathItem[] pathItems()

An object to hold reusable Path Item Objects.

Returns:PathItem[]

the reusable PathItem objects.

Since
4.0
requestBodiesback to summary
public RequestBody[] requestBodies()

An object to hold reusable Request Body Objects.

Returns:RequestBody[]

the reusable RequestBody objects.

responsesback to summary
public APIResponse[] responses()

An object to hold reusable Response Objects.

Returns:APIResponse[]

the reusable ApiResponse objects.

schemasback to summary
public Schema[] schemas()

An object to hold reusable Schema Objects.

Returns:Schema[]

the reusable Schema objects.

securitySchemesback to summary
public SecurityScheme[] securitySchemes()

An object to hold reusable Security Scheme Objects.

Returns:SecurityScheme[]

the reusable SecurityScheme objects.