UNPKG

@loopback/docs

Version:

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

136 lines (64 loc) 1.96 kB
--- lang: en title: 'API docs: rest.restcomponent' 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.restcomponent.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) ## RestComponent class **Signature:** ```typescript export declare class RestComponent implements Component ``` **Implements:** [Component](./core.component.md) ## Constructors <table><thead><tr><th> Constructor </th><th> Modifiers </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [(constructor)(app, config)](./rest.restcomponent._constructor_.md) </td><td markdown="1"> </td><td markdown="1"> Constructs a new instance of the `RestComponent` class </td></tr> </tbody></table> ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [bindings](./rest.restcomponent.bindings.md) </td><td markdown="1"> </td><td markdown="1"> [Binding](./context.binding.md)<!-- -->\[\] </td><td markdown="1"> Add built-in body parsers </td></tr> <tr><td markdown="1"> [providers](./rest.restcomponent.providers.md) </td><td markdown="1"> </td><td markdown="1"> [ProviderMap](./core.providermap.md) </td><td markdown="1"> </td></tr> <tr><td markdown="1"> [servers](./rest.restcomponent.servers.md) </td><td markdown="1"> </td><td markdown="1"> { \[name: string\]: [Constructor](./context.constructor.md)<!-- -->&lt;[Server](./core.server.md)<!-- -->&gt;; } </td><td markdown="1"> </td></tr> </tbody></table>