使用 Swashbuckle 创建时 swagger.json 的位置
Location of swagger.json when created with Swashbuckle
当我构建 运行 我的 Azure Web API 时,我得到了一个漂亮的 swaggerUI。
我想将 API 添加到 Azure API 管理。
为此,我需要 URL 或 swagger.json 文件。
Swashbuckle 将文件放在哪里?
或者,如果它是动态生成的,我怎样才能访问它?
Swagger.json 文件应该可以在 [yourwebsitedomain]/swagger/docs/v1
访问
Swagger 顶部的 swagger.json 文件也应该有一个 link UI
您的页面上有 link 到 swagger.json 。
对我来说 json 位于 URL:
http://[服务器]:[端口]/v1/swagger
当我构建 运行 我的 Azure Web API 时,我得到了一个漂亮的 swaggerUI。
我想将 API 添加到 Azure API 管理。
为此,我需要 URL 或 swagger.json 文件。
Swashbuckle 将文件放在哪里?
或者,如果它是动态生成的,我怎样才能访问它?
Swagger.json 文件应该可以在 [yourwebsitedomain]/swagger/docs/v1
访问Swagger 顶部的 swagger.json 文件也应该有一个 link UI
您的页面上有 link 到 swagger.json
对我来说 json 位于 URL:
http://[服务器]:[端口]/v1/swagger