Page Contents

Home > @loopback/rest > HttpHandler > registerApiComponents

HttpHandler.registerApiComponents() method

Merge components into the OpenApi spec

Signature:

registerApiComponents(defs: ComponentsObject): void;

Parameters

Parameter Type Description
defs ComponentsObject Components

Returns:

void