![](/img/trans.png)
[英].net core/swagger - How can I around a controller file when generating the swagger.json file?
[英]How can change swagger.json file with my openapi which I already have
我有一個示例 restapi 項目,我還有另一個針對我的 API 的開放式 API 文檔。 I want to replace generated swagger.json with my open API, but I couldn't find swagger.json in my project, and don't know how to change the swagger.json with my open API. as I showd it in the picture below.
我在這里添加了一個指向我的項目的鏈接: https://github.com/SoheilaHashemi/Swagger/
Swagger 規范由Swashbuckle生成,它是一個庫,其目的是根據您現有的代碼生成文檔。
如果您只想更改文檔,您可能不想使用 Swashbuckle,因為這是存在的理由。
相反,您可能只是在尋找SwaggerUI 庫,它將 Swagger 定義轉換為您所看到的交互式體驗。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.