Page Contents

Home > @loopback/rest > validateApiPath

validateApiPath() function

Validate the path to be compatible with OpenAPI path template. No parameter modifier, custom pattern, or unnamed parameter is allowed.

Signature:

export declare function validateApiPath(path?: string): string;

Parameters

Parameter Type Description
path string (Optional)

Returns:

string