Interface OpenApiOperationContext
-
- All Known Subinterfaces:
OpenApiOperationFunctionContext
public interface OpenApiOperationContext
Context for theOpenApiOperationBuilder
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String[]
getAllSecurityNames()
Obtains all the security names registered via theOpenApiSecurityExtension
instances.io.swagger.v3.oas.models.Components
getComponents()
Obtains theComponents
.HttpInputExplorerContext
getHttpInput()
Obtains theHttpInputExplorerContext
.io.swagger.v3.oas.models.OpenAPI
getOpenApi()
Obtains theOpenAPI
.io.swagger.v3.oas.models.Operation
getOperation()
Obtains theOperation
.io.swagger.v3.oas.models.security.SecurityRequirement
getOrAddSecurityRequirement(java.lang.String securityName)
Convenience method to lazy create theSecurityRequirement
.io.swagger.v3.oas.models.parameters.Parameter
getParameter(java.lang.String name)
Obtains theParameter
by name.io.swagger.v3.oas.models.PathItem
getPath()
Obtains thePathItem
.
-
-
-
Method Detail
-
getHttpInput
HttpInputExplorerContext getHttpInput()
Obtains theHttpInputExplorerContext
.- Returns:
HttpInputExplorerContext
.
-
getOpenApi
io.swagger.v3.oas.models.OpenAPI getOpenApi()
Obtains theOpenAPI
.- Returns:
OpenAPI
.
-
getPath
io.swagger.v3.oas.models.PathItem getPath()
Obtains thePathItem
.- Returns:
PathItem
.
-
getOperation
io.swagger.v3.oas.models.Operation getOperation()
Obtains theOperation
.- Returns:
Operation
.
-
getParameter
io.swagger.v3.oas.models.parameters.Parameter getParameter(java.lang.String name)
Obtains theParameter
by name.- Parameters:
name
- Name of theParameter
.- Returns:
Parameter
by name ornull
if none.
-
getOrAddSecurityRequirement
io.swagger.v3.oas.models.security.SecurityRequirement getOrAddSecurityRequirement(java.lang.String securityName)
Convenience method to lazy create the
SecurityRequirement
.This will return the first
SecurityRequirement
registered for theSecurityScheme
.- Parameters:
securityName
- Name ofSecurityScheme
.- Returns:
- Existing
SecurityRequirement
forSecurityScheme
or createdSecurityRequirement
if not already added.
-
getComponents
io.swagger.v3.oas.models.Components getComponents()
Obtains theComponents
.- Returns:
Components
.
-
getAllSecurityNames
java.lang.String[] getAllSecurityNames()
Obtains all the security names registered via theOpenApiSecurityExtension
instances.- Returns:
- All the security names.
-
-