Page Contents

Home > @loopback/rest > RestComponent

RestComponent class

Signature:

export declare class RestComponent implements Component 

Implements: Component

Constructors

Constructor Modifiers Description
[(constructor)(app, config)](/doc/en/lb4/apidocs.rest.restcomponent._constructor_.html) Constructs a new instance of the `RestComponent` class

Properties

Property Modifiers Type Description
[bindings](/doc/en/lb4/apidocs.rest.restcomponent.bindings.html) [Binding](/doc/en/lb4/apidocs.context.binding.html)\[\] Add built-in body parsers
[providers](/doc/en/lb4/apidocs.rest.restcomponent.providers.html) [ProviderMap](/doc/en/lb4/apidocs.core.providermap.html)
[servers](/doc/en/lb4/apidocs.rest.restcomponent.servers.html) { \[name: string\]: [Constructor](/doc/en/lb4/apidocs.context.constructor.html)<[Server](/doc/en/lb4/apidocs.core.server.html)>; }