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 Details

    • DisabledRestEndpointsFilter

      public DisabledRestEndpointsFilter()
  • Method Details

    • filterOpenAPI

      public void filterOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI openAPI)
      Specified by:
      filterOpenAPI in interface org.eclipse.microprofile.openapi.OASFilter
    • disabledRestEndpoints

      static Stream<Map.Entry<String,List<String>>> disabledRestEndpoints()
    • stripSlash

      static String stripSlash(String path)
      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.