Class RestOpenApiHelper

java.lang.Object
org.apache.camel.component.rest.openapi.RestOpenApiHelper

public final class RestOpenApiHelper extends Object
  • Method Details

    • isMediaRange

      public static String isMediaRange(String given, String name)
    • isYamlResource

      public static boolean isYamlResource(org.apache.camel.spi.Resource resource)
      Determines if a Resource contains YAML content.
      Parameters:
      resource - The resource to inspect
      Returns:
      true if the resource has YAML content, otherwise false
    • determineBasePath

      public static String determineBasePath(org.apache.camel.CamelContext camelContext, RestOpenApiComponent component, RestOpenApiEndpoint endpoint, io.swagger.v3.oas.models.OpenAPI openAPI)
      Determines the base-path according to various configuration on component/endpoint and in the spec
    • getBasePathFromOpenApi

      public static String getBasePathFromOpenApi(io.swagger.v3.oas.models.OpenAPI openApi)
    • parseVariables

      public static String parseVariables(String url, io.swagger.v3.oas.models.servers.Server server)