UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

32 lines (21 loc) 1.04 kB
--- lang: en title: 'API docs: rest.restserver._constructor_' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest permalink: /doc/en/lb4/apidocs.rest.restserver._constructor_.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestServer](./rest.restserver.md) &gt; [(constructor)](./rest.restserver._constructor_.md) ## RestServer.(constructor) Creates an instance of RestServer. <b>Signature:</b> ```typescript constructor(app: Application, config?: RestServerConfig); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | app | [Application](./core.application.md) | The application instance (injected via CoreBindings.APPLICATION\_INSTANCE). | | config | [RestServerConfig](./rest.restserverconfig.md) | The configuration options (injected via RestBindings.CONFIG). |