Class DisabledRestEndpointsFilter
java.lang.Object
io.quarkus.smallrye.openapi.runtime.filter.DisabledRestEndpointsFilter
- All Implemented Interfaces:
org.eclipse.microprofile.openapi.OASFilter
public class DisabledRestEndpointsFilter
extends Object
implements org.eclipse.microprofile.openapi.OASFilter
If the RESTEasy Reactive extension passed us a list of REST paths that are disabled via the @DisabledRestEndpoint
annotation, remove them from the OpenAPI document. This has to be done at runtime because
the annotation is controlled by a runtime config property.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidfilterOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI openAPI) static Optional<org.eclipse.microprofile.openapi.OASFilter>(package private) static StringstripSlash(String path) Removes any trailing slash character from the path when it is not the root '/' path.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
-
disabledEndpoints
-
-
Method Details
-
maybeGetInstance
-
filterOpenAPI
public void filterOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI openAPI) - Specified by:
filterOpenAPIin interfaceorg.eclipse.microprofile.openapi.OASFilter
-
stripSlash
Removes any trailing slash character from the path when it is not the root '/' path. This is necessary to align with the paths generated in the OpenAPI model.
-