swagger_yard 将它生成的 JSON 放在哪里?
Where does swagger_yard place the JSON it generates?
swagger_yard 将其生成的 JSON 文件放在哪里?
README里没有这么说,https://github.com/livingsocial/swagger_yard
我正在尝试将 swagger-ui_rails 指向那个 JSON 文件。
我发现我的 JSON 跟随 https://myapibaseurl.com/swagger/swagger
并从 ui 指向这条路线对我来说是成功的:)。
您可以通过在 rails routes
控制台命令的输出中搜索 swagger 来检查它,以确保在哪里查看!
swagger_yard 将其生成的 JSON 文件放在哪里?
README里没有这么说,https://github.com/livingsocial/swagger_yard
我正在尝试将 swagger-ui_rails 指向那个 JSON 文件。
我发现我的 JSON 跟随 https://myapibaseurl.com/swagger/swagger
并从 ui 指向这条路线对我来说是成功的:)。
您可以通过在 rails routes
控制台命令的输出中搜索 swagger 来检查它,以确保在哪里查看!