Rfc6570PathTemplateMapper.TryMapToKestrelRoute method

Attempts to map an RFC6570 path template to a Kestrel route pattern.

public static bool TryMapToKestrelRoute(string openApiTemplate, out Rfc6570PathMapping mapping, 
    out string? error)
parameter description
openApiTemplate The OpenAPI path template (RFC6570).
mapping The resulting mapping for OpenAPI and Kestrel patterns.
error The error message when mapping fails.

Return Value

True when mapping succeeds; otherwise false.

See Also