# @4geit/swg-<NAME>-<TYPE> [![npm version](//badge.fury.io/js/@4geit%2Fswg-<NAME>-<TYPE>.svg)](//badge.fury.io/js/@4geit%2Fswg-<NAME>-<TYPE>)

---

<DESCRIPTION>

## Installation

1. A recommended way to install ***@4geit/swg-<NAME>-<TYPE>*** is through [npm](//www.npmjs.com/search?q=@4geit/swg-<NAME>-<TYPE>) package manager using the following command:

```bash
npm i @4geit/swg-<NAME>-<TYPE> --save
```

Or use `yarn` using the following command:

```bash
yarn add @4geit/swg-<NAME>-<TYPE>
```

2. In your swagger file, you need to add a reference to the `<CLASS>` definition under the `definitions` property (e.g. `/api/swagger/swagger.yaml`) as below:

```yaml
swagger: "2.0"
# ...
definitions:
  <CLASS>:
    $ref: ../../node_modules/@4geit/swg-<NAME>-<TYPE>/swagger.yaml#/definitions/<CLASS>
# ...
```
