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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
filterOpenAPI
(org.eclipse.microprofile.openapi.models.OpenAPI openAPI) (package private) static String
stripSlash
(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, wait
Methods inherited from interface org.eclipse.microprofile.openapi.OASFilter
filterAPIResponse, filterCallback, filterHeader, filterLink, filterOperation, filterParameter, filterPathItem, filterRequestBody, filterSchema, filterSecurityScheme, filterServer, filterTag
-
Constructor Details
-
DisabledRestEndpointsFilter
public DisabledRestEndpointsFilter()
-
-
Method Details
-
filterOpenAPI
public void filterOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI openAPI) - Specified by:
filterOpenAPI
in interfaceorg.eclipse.microprofile.openapi.OASFilter
-
disabledRestEndpoints
-
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.
-