cost 196 ms
如何將openapi本地文件加載到localhost上的swagger? (由 restdocs 生成的文件)

[英]How to load openapi local files into swagger on localhost? (Files generated by restdocs)

我的 api 文檔由 restdocs 通過單元測試生成。 盡管它可以很好地滿足我的大部分需求,但我仍然缺乏一些不錯的 swagger 功能,所以我試圖通過將 restdocs 轉換為 swagger 來充分利用這兩個詞。嘗試了很長時間后,我終於設法在一些第三方庫的幫助下完成它( https:// ...

在 Spring Boot with springdoc-openapi-starter-webmvc-ui:2.0.2 中訪問 /v3/api-docs 時如何修復 http 500 錯誤?

[英]How to fix http 500 error when accessing /v3/api-docs in Spring Boot with springdoc-openapi-starter-webmvc-ui:2.0.2?

我正在嘗試在我的小 Spring Boot 項目中使用 swagger 和 springdoc。 我不知道為什么,但每次我嘗試訪問 http://localhost:8080/v3/api-docs 時,我都會收到內部服務器錯誤。 這是我的堆棧跟蹤: https://pastebin.com/y2 ...

如何使用 Springdoc OpenAPI 和 GroupedOpenApi 調整上下文路徑

[英]How do you adjust context-paths with Springdoc OpenAPI & GroupedOpenApi

背景: 我們的任務是從兩個遺留的 API/服務中遷移出來,整合它們並引入一個更新的 v2 API——它們都使用相同的底層代碼庫。 我的方法是使用多個@RestControllers ,每個都有一個類級別的@RequestMapping 。 為了便於討論,假設名稱/子路徑是: /v1/legacy-a ...

無法在 Spring boot 3 中獲取或創建 PersistentEntity,同時嘗試訪問 springdoc

[英]Can't get or create PersistentEntity in Spring boot 3 while tring access springdoc

您好,讓我介紹一下這個問題的背景。 所以我正在嘗試將 springboot 2.7.3 遷移到 3,現在所有更改都已相應完成,我不得不使用 springdoc-openapi-starter-webmvc-ui:2.0.0 而不是 springdoc-openapi-ui。 現在應用程序開始完美, ...

Spring Boot 3.0.0 與 Springdoc 不兼容?

[英]Spring Boot 3.0.0 and Springdoc incompatible?

我有一個准系統的 SpringBoot 項目,在 pom 文件中有最新的 Springdoc 依賴項(截至撰寫本文時): 另外我只有 web starter 依賴: 它適用於 Spring Boot 2.7.5。 在本地機器上,我可以轉到http://localhost:8080/swagger- ...

使用 Spring 的 Swagger UI 出現 404 錯誤(springdoc-openapi 配置)

[英]404 error on Swagger UI with Spring (springdoc-openapi configuration)

我正在將 swagger UI 添加到我的 Spring boot 應用程序中。 當我嘗試訪問 swagger-ui.html 時。 我收到 404 錯誤。 配置類: 應用程序.properties: pom.xml: 錯誤消息:Whitelabel Error Page 此應用程序沒有針對 / ...

springdoc-openapi-maven-plugin 在 YAML 文件中的 null 添加示例

[英]springdoc-openapi-maven-plugin adding example at null in YAML file

我正在使用 springdoc-openapi-maven-plugin 生成 YAML 格式的合同,並以某種方式為每個路徑/請求參數在 null( example: null )生成一個示例。 有沒有辦法避免這種情況? 這是生成的 YAML 的示例 和插件(pom.xml) ResourceCo ...

使用 SpringDoc 在 openapi3 json 中渲染 HAL 格式的鏈接

[英]Render HAL formatted links in openapi3 json with SpringDoc

我正在運行一個 Spring Boot REST 應用程序,支持 Spring HATEOAS,並使用 Springdoc Maven 插件生成 OpenAPIv3 文檔。 但是,當我調用我的 REST 端點時,我得到 HAL 格式的鏈接 JSON(“_links”)。 但是生成的 OpenAPIv ...

如何在接受 Flux 的 swagger-ui (spring doc) 中添加文件上傳按鈕<bytebuffer> ?</bytebuffer>

[英]How to add button for file upload in swagger-ui (spring doc) which accepts Flux<ByteBuffer>?

我使用 spring 文檔 1.6.12: 我有以下 controller 方法: 在 swagger ui 中我看到: 所以我沒有上傳文件的按鈕。 有辦法實現嗎? 聚苯乙烯如果我改變 到 我在 swagger 中看到上傳按鈕,但底層代碼取決於Flux&lt;ByteBuffer&gt; dat ...

如何在 Springdoc 中禁用 Swagger UI 語法突出顯示?

[英]How to disable Swagger UI syntax highlighting in Springdoc?

我正在使用springdoc-swagger-ui 。 Swagger UI 無法處理大型響應是一個已知問題,建議的解決方法是禁用 Swagger UI 中的語法突出顯示。 我嘗試在application.yaml中為我的 Spring Boot 應用程序添加以下配置,但沒有效果。 我仍然看到響 ...

如何制作 gradle 任務取決於 springdoc-openapi-gradle-plugin 中的“generateOpenApiDocs”任務(使用 Kotlin DSL)?

[英]How to make a gradle task depends on the "generateOpenApiDocs" task from the springdoc-openapi-gradle-plugin (using Kotlin DSL)?

我對 gradle 很陌生,我想自動化以下任務: 從 SpringBoot 應用程序生成 openapi.json 文件(使用springdoc-openapi-gradle-plugin ) 然后使用這個生成的文件創建一個客戶端 SDK(使用Gradle Swagger Generator Pl ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM