DRY swagger-ui config with relative path

This commit is contained in:
Maikel Linke
2023-09-05 14:08:28 +10:00
parent fc7c8757d9
commit fe2eecb69e

View File

@@ -9,8 +9,8 @@ Rswag::Ui.configure do |config|
# (under swagger_root) as JSON or YAML endpoints, then the list below should
# correspond to the relative paths for those endpoints.
config.swagger_endpoint '/api-docs/v1/swagger.yaml', 'API V1 Docs'
config.swagger_endpoint '/api-docs/dfc-v1.7/swagger.yaml', 'OFN DFC API Docs'
config.swagger_endpoint 'v1/swagger.yaml', 'API V1 Docs'
config.swagger_endpoint 'dfc-v1.7/swagger.yaml', 'OFN DFC API Docs'
# Add Basic Auth in case your API is private
# config.basic_auth_enabled = true