@loopback/docs
Version:
Documentation for LoopBack 4
44 lines (29 loc) • 1.32 kB
Markdown
lang: en
title: 'API docs: rest.infospecenhancer'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.infospecenhancer.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [InfoSpecEnhancer](./rest.infospecenhancer.md)
## InfoSpecEnhancer class
An OpenAPI spec enhancer to populate `info` with application metadata (package.json).
<b>Signature:</b>
```typescript
export declare class InfoSpecEnhancer implements OASEnhancer
```
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(pkg)](./rest.infospecenhancer._constructor_.md) | | Constructs a new instance of the <code>InfoSpecEnhancer</code> class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [name](./rest.infospecenhancer.name.md) | | <code>string</code> | |
| [pkg](./rest.infospecenhancer.pkg.md) | | <code>ApplicationMetadata | undefined</code> | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [modifySpec(spec)](./rest.infospecenhancer.modifyspec.md) | | |