@4geit/swg-account-model-definition
swagger definition of an account model
Installation
- A recommended way to install @4geit/swg-account-model-definition is through npm package manager using the following command:
npm i @4geit/swg-account-model-definition --save
Or use yarn
using the following command:
yarn add @4geit/swg-account-model-definition
- In your swagger file, you need to add a reference to the
SwgAccountModelDefinition
definition under thedefinitions
property (e.g./api/swagger/swagger.yaml
) as below:
swagger: "2.0"
# ...
definitions:
SwgAccountModelDefinition:
$ref: ./node_modules/@4geit/swg-account-model-definition/swagger.yaml#/definitions/SwgAccountModelDefinition
# ...