@4geit/swg-account-security-model 中文文档教程
@4geit/swg-account-security-model
帐户 api 的安全定义
Installation
- A recommended way to install @4geit/swg-account-security-model is through npm package manager using the following command:
npm i @4geit/swg-account-security-model --save
或使用 yarn
使用以下命令:
yarn add @4geit/swg-account-security-model
- In your swagger file, you need to add a reference to the
SwgAccountSecurityModel
definition under thedefinitions
property (e.g./api/swagger/swagger.yaml
) as below:
swagger: "2.0"
# ...
definitions:
SwgAccountSecurityModel:
$ref: ../../node_modules/@4geit/swg-account-security-model/swagger.yaml#/definitions/SwgAccountSecurityModel
# ...
@4geit/swg-account-security-model
security definition for account api
Installation
- A recommended way to install @4geit/swg-account-security-model is through npm package manager using the following command:
npm i @4geit/swg-account-security-model --save
Or use yarn
using the following command:
yarn add @4geit/swg-account-security-model
- In your swagger file, you need to add a reference to the
SwgAccountSecurityModel
definition under thedefinitions
property (e.g./api/swagger/swagger.yaml
) as below:
swagger: "2.0"
# ...
definitions:
SwgAccountSecurityModel:
$ref: ../../node_modules/@4geit/swg-account-security-model/swagger.yaml#/definitions/SwgAccountSecurityModel
# ...