UNPKG

@loopback/docs

Version:
34 lines (21 loc) 753 B
--- lang: en title: 'API docs: rest.toexpresspath' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.rest.toexpresspath.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [toExpressPath](./rest.toexpresspath.md) ## toExpressPath() function Convert an OpenAPI path to Express (path-to-regexp) style <b>Signature:</b> ```typescript export declare function toExpressPath(path: string): string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | path | <code>string</code> | OpenAPI path with optional variables as <code>{var}</code> | <b>Returns:</b> `string`