如何为基本身份验证凭据使用不同的标签Swagger 3

时间:2019-02-07 13:56:38

标签: swagger-ui swagger-3.0

我的API当前使用的是api_xxx而不是username的基本身份验证,并且是api_xxy而不是password的基本身份验证,对于这种情况,我们是否有任何特定的架构? >

一切正常,我只想更改用户名和密码的UI标签。

以下功能描述如下:

components:
  securitySchemes:
    basicAuth:     # <-- arbitrary name for the security scheme
      type: http
      scheme: basic
security:
  - basicAuth: []  # <-- use the same name here

0 个答案:

没有答案