You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added to below code to the my initializers config file.
class Swagger::Docs::Config
def self.transform_path(path, api_version)
# Make a distinction between the APIs and API documentation paths.
"apidocs/#{path}"
end
end
But it is not creating the current paths ...
Please let me know what i have to do ?
The text was updated successfully, but these errors were encountered:
The documentation says that the transform_pathtransformation will be applied to all API path values in the generated api-docs.json file, so this does NOT change the location of generated docs.
You need to use :api_file_path option in conjunction with the transform_path to change the location.
class Swagger::Docs::Config
def self.transform_path(path, api_version)
"api-docs/#{path}"
end
end
Swagger::Docs::Config.register_apis(
'v1': {
api_file_path: 'public/api-docs',
...
)
I have added to below code to the my initializers config file.
class Swagger::Docs::Config
def self.transform_path(path, api_version)
# Make a distinction between the APIs and API documentation paths.
"apidocs/#{path}"
end
end
But it is not creating the current paths ...
Please let me know what i have to do ?
The text was updated successfully, but these errors were encountered: