This is the root document object of the OpenAPI document. It contains required and optional fields.
| Modifier and Type | Method and Description |
|---|---|
| public OpenAPI | Returns: the current OpenAPI objectsecurity mechanism which can be used across the API securityRequirement)Adds the given security requirement to this OpenAPI instance's list of security requirements. |
| public OpenAPI | |
| public OpenAPI | |
| public OpenAPI | Returns: the current Schema instanceunique name of the webhook to add name, PathItem webhook definition to add webhook)Adds a webhook definition. |
| public default OpenAPI | Returns: the current OpenAPI objecta set of reusable objects used in the API specification components)Sets this OpenAPI instance's components property to the given components. |
| public default OpenAPI | Returns: the current OpenAPI objectadditional external documentation externalDocs)Sets this OpenAPI instance's externalDocs property to the given object. |
| public Components | Returns: schemas used in the specificationReturns the components property from an OpenAPI instance. |
| public ExternalDocumentation | Returns: additional external documentationReturns the externalDocs property from an OpenAPI instance. |
| public Info | |
| public String | Returns: the semantic version number of the OpenAPI Specification version that the OpenAPI document usesReturns the openapi property from an OpenAPI instance. |
| public Paths | Returns: the available paths and operations for the APIReturns the paths property from an OpenAPI instance. |
| public List | Returns: a copy List (potentially immutable) containing the security mechanisms that can be used across the APIReturns the security property from an OpenAPI instance. |
| public List | Returns: a copy List (potentially immutable) of Server objects which provide connectivity information to target serversReturns the Servers defined in the API |
| public List | Returns: a copy List (potentially immutable) of tags defined in this the specificationReturns the tags property from an OpenAPI instance. |
| public Map | Returns: a copy Map (potentially immutable) of named webhook definitionsReturns the webhooks property of this OpenAPI instance. |
| public default OpenAPI | |
| public default OpenAPI | |
| public default OpenAPI | |
| public void | removeSecurityRequirement(SecurityRequirement
security mechanism which can be used across the API securityRequirement)Removes the given security requirement to this OpenAPI instance's list of security requirements. |
| public void | removeServer(Server
Server object which provides connectivity information to a target server server)Removes the given server to this OpenAPI instance's list of servers. |
| public void | |
| public void | |
| public default OpenAPI | Returns: the current OpenAPI objectwhich security mechanisms can be used across the API security)Sets this OpenAPI instance's security property to the given list. |
| public default OpenAPI | |
| public void | setComponents(Components
a set of reusable objects used in the API specification components)Sets this OpenAPI instance's components property to the given components. |
| public void | setExternalDocs(ExternalDocumentation
additional external documentation. externalDocs)Sets this OpenAPI instance's externalDocs property to the given object. |
| public void | |
| public void | setOpenapi(String
the semantic version number of the OpenAPI Specification version that the OpenAPI document uses openapi)Sets this OpenAPI instance's openapi property to the given string. |
| public void | |
| public void | setSecurity(List<SecurityRequirement>
which security mechanisms can be used across the API security)Sets this OpenAPI instance's security property to the given list. |
| public void | setServers(List<Server>
Server objects which provide connectivity information to target servers servers)Sets this OpenAPI instance's servers property to the given servers. |
| public void | |
| public void | setWebhooks(Map<String, PathItem>
a map of named webhook definitions webhooks)Sets the webhooks property of this OpenAPI instance. |
| public default OpenAPI | |
| public default OpenAPI |
| addSecurityRequirement | back to summary |
|---|---|
| public OpenAPI addSecurityRequirement(SecurityRequirement securityRequirement) Adds the given security requirement to this OpenAPI instance's list of security requirements.
| |
| addServer | back to summary |
|---|---|
| public OpenAPI addServer(Server server) Adds the given server to this OpenAPI instance's list of servers. | |
| addTag | back to summary |
|---|---|
| public OpenAPI addTag(Tag tag) Adds the given tag to this OpenAPI instance's list of tags. | |
| addWebhook | back to summary |
|---|---|
| public OpenAPI addWebhook(String name, PathItem webhook) Adds a webhook definition. | |
| components | back to summary |
|---|---|
| public default OpenAPI components(Components components) Sets this OpenAPI instance's components property to the given components.
| |
| externalDocs | back to summary |
|---|---|
| public default OpenAPI externalDocs(ExternalDocumentation externalDocs) Sets this OpenAPI instance's externalDocs property to the given object.
| |
| getComponents | back to summary |
|---|---|
| public Components getComponents() Returns the components property from an OpenAPI instance.
| |
| getExternalDocs | back to summary |
|---|---|
| public ExternalDocumentation getExternalDocs() Returns the externalDocs property from an OpenAPI instance.
| |
| getInfo | back to summary |
|---|---|
| public Info getInfo() Returns the info property from an OpenAPI instance.
| |
| getOpenapi | back to summary |
|---|---|
| public String getOpenapi() Returns the openapi property from an OpenAPI instance.
| |
| getPaths | back to summary |
|---|---|
| public Paths getPaths() Returns the paths property from an OpenAPI instance.
| |
| getSecurity | back to summary |
|---|---|
| public List Returns the security property from an OpenAPI instance.
| |
| getServers | back to summary |
|---|---|
| public List Returns the Servers defined in the API | |
| getTags | back to summary |
|---|---|
| public List Returns the tags property from an OpenAPI instance. | |
| getWebhooks | back to summary |
|---|---|
| public Map Returns the webhooks property of this OpenAPI instance. | |
| info | back to summary |
|---|---|
| public default OpenAPI info(Info info) Sets this OpenAPI instance's info property to the given object. | |
| openapi | back to summary |
|---|---|
| public default OpenAPI openapi(String openapi) Sets this OpenAPI instance's openapi property to the given string. | |
| paths | back to summary |
|---|---|
| public default OpenAPI paths(Paths paths) Sets this OpenAPI instance's paths property to the given paths. | |
| removeSecurityRequirement | back to summary |
|---|---|
| public void removeSecurityRequirement(SecurityRequirement securityRequirement) Removes the given security requirement to this OpenAPI instance's list of security requirements.
| |
| removeServer | back to summary |
|---|---|
| public void removeServer(Server server) Removes the given server to this OpenAPI instance's list of servers.
| |
| removeTag | back to summary |
|---|---|
| public void removeTag(Tag tag) Removes the given tag to this OpenAPI instance's list of tags.
| |
| removeWebhook | back to summary |
|---|---|
| public void removeWebhook(String name) Removes a webhook definition.
| |
| security | back to summary |
|---|---|
| public default OpenAPI security(List<SecurityRequirement> security) Sets this OpenAPI instance's security property to the given list.
| |
| servers | back to summary |
|---|---|
| public default OpenAPI servers(List<Server> servers) Sets this OpenAPI instance's servers property to the given servers. | |
| setComponents | back to summary |
|---|---|
| public void setComponents(Components components) Sets this OpenAPI instance's components property to the given components.
| |
| setExternalDocs | back to summary |
|---|---|
| public void setExternalDocs(ExternalDocumentation externalDocs) Sets this OpenAPI instance's externalDocs property to the given object.
| |
| setInfo | back to summary |
|---|---|
| public void setInfo(Info info) Sets this OpenAPI instance's info property to the given object.
| |
| setOpenapi | back to summary |
|---|---|
| public void setOpenapi(String openapi) Sets this OpenAPI instance's openapi property to the given string.
| |
| setPaths | back to summary |
|---|---|
| public void setPaths(Paths paths) Sets this OpenAPI instance's paths property to the given paths.
| |
| setSecurity | back to summary |
|---|---|
| public void setSecurity(List<SecurityRequirement> security) Sets this OpenAPI instance's security property to the given list.
| |
| setServers | back to summary |
|---|---|
| public void setServers(List<Server> servers) Sets this OpenAPI instance's servers property to the given servers. | |
| setTags | back to summary |
|---|---|
| public void setTags(List<Tag> tags) Sets this OpenAPI instance's tags property to the given Tags. | |
| setWebhooks | back to summary |
|---|---|
| public void setWebhooks(Map<String, PathItem> webhooks) Sets the webhooks property of this OpenAPI instance. | |
| tags | back to summary |
|---|---|
| public default OpenAPI tags(List<Tag> tags) Sets this OpenAPI instance's tags property to the given tags. | |
| webhooks | back to summary |
|---|---|
| public default OpenAPI webhooks(Map<String, PathItem> webhooks) Sets the webhooks property of this OpenAPI instance. | |