Class 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 Detail

      • DisabledRestEndpointsFilter

        public DisabledRestEndpointsFilter()
    • Method Detail

      • filterOpenAPI

        public void filterOpenAPI​(org.eclipse.microprofile.openapi.models.OpenAPI openAPI)
        Specified by:
        filterOpenAPI in interface org.eclipse.microprofile.openapi.OASFilter
      • 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.