【问题标题】:How to expose Spring's HttpSecurity Logout endpoint in swagger-ui if using springdoc-openapi library?如果使用 springdoc-openapi 库,如何在 swagger-ui 中公开 Spring 的 HttpSecurity Logout 端点?
【发布时间】:2020-06-03 12:49:00
【问题描述】:

我找到了在 springfox 的 swagger-ui 中公开 Spring logout 端点的解决方案: Configure Swagger-UI to pick up Spring's HttpSecurity Logout endpoint

但老实说不知道如何为 springdoc-openapi 制作它:https://springdoc.org/

【问题讨论】:

    标签: spring spring-security swagger swagger-ui springdoc-openapi-ui


    【解决方案1】:

    您可以使用 OpenApiCustomiser,并以编程方式将端点声明添加到 OpenAPI Bean。

    【讨论】:

      猜你喜欢
      • 2016-08-25
      • 2021-06-03
      • 2020-09-09
      • 1970-01-01
      • 2021-03-29
      • 1970-01-01
      • 2021-11-14
      • 2021-03-05
      • 2022-10-25
      相关资源
      最近更新 更多