Class RestOpenApiHelper
java.lang.Object
org.apache.camel.component.rest.openapi.RestOpenApiHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringdetermineBasePath(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 specstatic StringgetBasePathFromOpenApi(io.swagger.v3.oas.models.OpenAPI openApi) static StringisMediaRange(String given, String name) static booleanisYamlResource(org.apache.camel.spi.Resource resource) Determines if aResourcecontains YAML content.static StringparseVariables(String url, io.swagger.v3.oas.models.servers.Server server)
-
Method Details
-
isMediaRange
-
isYamlResource
public static boolean isYamlResource(org.apache.camel.spi.Resource resource) Determines if aResourcecontains YAML content.- Parameters:
resource- The resource to inspect- Returns:
trueif the resource has YAML content, otherwisefalse
-
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
-
parseVariables
-