UNPKG

@loopback/docs

Version:
31 lines (20 loc) 807 B
--- lang: en title: 'API docs: rest.restcomponent._constructor_' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.rest.restcomponent._constructor_.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestComponent](./rest.restcomponent.md) &gt; [(constructor)](./rest.restcomponent._constructor_.md) ## RestComponent._constructor_ Constructs a new instance of the `RestComponent` class <b>Signature:</b> ```typescript constructor(app: Application, config?: RestComponentConfig); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | app | <code>Application</code> | | | config | <code>RestComponentConfig</code> | |