This is the root document object of the OpenAPI document. It contains required and optional fields.
| Modifier and Type | Method and Description |
|---|---|
| public Components | Returns: the element with a set of reusable objects for different aspects of the OAS.An element to hold a set of reusable objects for different aspects of the OpenAPI Specification (OAS). |
| public Extension[] | Returns: array of extensionsList of extensions to be added to the |
| public ExternalDocumentation | Returns: the external documentation for this API.Any additional external documentation for the API |
| public Info | |
| public SecurityRequirement[] | Returns: the array of security requirements for this APIA declaration of which security mechanisms can be used across the API. |
| public SecurityRequirementsSet[] | Returns: the array of security requirement sets for this APIA declaration of which security mechanisms can be used across the API. |
| public Server[] | Returns: the servers of this APIAn array of Server Objects, which provide connectivity information to a target server. |
| public Tag[] | Returns: the tags used by the specification with any additional metadataA list of tags used by the specification with additional metadata. |
| public PathItem[] | Returns: the array of webhooksAn array of webhook definitions which the API may be instructed to call using out-of-band mechanisms. |
| components | back to summary |
|---|---|
| public Components components() An element to hold a set of reusable objects for different aspects of the OpenAPI Specification (OAS). All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object.
| |
| extensions | back to summary |
|---|---|
| public Extension[] extensions() List of extensions to be added to the
| |
| externalDocs | back to summary |
|---|---|
| public ExternalDocumentation externalDocs() Any additional external documentation for the API
| |
| info | back to summary |
|---|---|
| public Info info() Required: Provides metadata about the API. The metadata MAY be used by tooling as required.
| |
| security | back to summary |
|---|---|
| public SecurityRequirement[] security() A declaration of which security mechanisms can be used across the API.
Adding a
| |
| securitySets | back to summary |
|---|---|
| public SecurityRequirementsSet[] securitySets() A declaration of which security mechanisms can be used across the API. All of the security requirements within any one of the sets must be satisfied to authorize a request. Including an empty set within this list indicates that the other requirements are optional.
| |
| servers | back to summary |
|---|---|
| public Server[] servers() An array of Server Objects, which provide connectivity information to a target server. If the servers property is not provided, or is an empty array, the default value would be a Server Object with a url value of /.
| |
| tags | back to summary |
|---|---|
| public Tag[] tags() A list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools.
| |
| webhooks | back to summary |
|---|---|
| public PathItem[] webhooks() An array of webhook definitions which the API may be instructed to call using out-of-band mechanisms.
| |