Page Contents

Home > @loopback/openapi-v3 > getControllerSpec

getControllerSpec() function

Get the controller spec for the given class

Signature:

export declare function getControllerSpec(constructor: Function): ControllerSpec;

Parameters

Parameter Type Description
constructor Function Controller class

Returns:

ControllerSpec