Class OperationFilter
java.lang.Object
io.quarkus.smallrye.openapi.deployment.filter.OperationFilter
- All Implemented Interfaces:
org.eclipse.microprofile.openapi.OASFilter
This filter has the following functions:
- Add operation descriptions based on the associated Java method name handling the operation
- Add operation tags based on the associated Java class of the operation
- Add security requirements based on discovered
RolesAllowed,PermissionsAllowed, andAuthenticatedannotations. Also add the expected security responses if needed. - Add Bad Request (400) response for invalid input (if none is provided)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOperationFilter(Map<String, ClassAndMethod> classNameMap, Map<String, List<String>> authorizedMethodReferences, List<String> authenticatedMethodReferences, String defaultSecuritySchemeName, boolean doAutoTag, boolean doAutoOperation, boolean doAutoBadRequest, boolean alwaysIncludeScopesValidForScheme) -
Method Summary
Modifier and TypeMethodDescriptionvoidfilterOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI openAPI) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.microprofile.openapi.OASFilter
filterAPIResponse, filterCallback, filterHeader, filterLink, filterOperation, filterParameter, filterPathItem, filterRequestBody, filterSchema, filterSecurityScheme, filterServer, filterTag
-
Field Details
-
EXT_METHOD_REF
- See Also:
-
-
Constructor Details
-
OperationFilter
public OperationFilter(Map<String, ClassAndMethod> classNameMap, Map<String, List<String>> authorizedMethodReferences, List<String> authenticatedMethodReferences, String defaultSecuritySchemeName, boolean doAutoTag, boolean doAutoOperation, boolean doAutoBadRequest, boolean alwaysIncludeScopesValidForScheme)
-
-
Method Details
-
filterOpenAPI
public void filterOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI openAPI) - Specified by:
filterOpenAPIin interfaceorg.eclipse.microprofile.openapi.OASFilter
-