Page Contents

Home > @loopback/rest > InfoSpecEnhancer

InfoSpecEnhancer class

An OpenAPI spec enhancer to populate info with application metadata (package.json).

Signature:

export declare class InfoSpecEnhancer implements OASEnhancer 

Implements: OASEnhancer

Constructors

Constructor Modifiers Description
[(constructor)(pkg)](/doc/en/lb4/apidocs.rest.infospecenhancer._constructor_.html) Constructs a new instance of the `InfoSpecEnhancer` class

Properties

Property Modifiers Type Description
[name](/doc/en/lb4/apidocs.rest.infospecenhancer.name.html) string
[pkg?](/doc/en/lb4/apidocs.rest.infospecenhancer.pkg.html) `readonly` [ApplicationMetadata](/doc/en/lb4/apidocs.core.applicationmetadata.html) \| undefined _(Optional)_

Methods

Method Modifiers Description
[modifySpec(spec)](/doc/en/lb4/apidocs.rest.infospecenhancer.modifyspec.html)