Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving /v2/api-docs to customised path #181

Open
agllno opened this issue Jun 1, 2022 · 0 comments
Open

Moving /v2/api-docs to customised path #181

agllno opened this issue Jun 1, 2022 · 0 comments

Comments

@agllno
Copy link

agllno commented Jun 1, 2022

Hi,

I am using Springfox starter with springboot, I want to move all swagger related files to customised path. I was able to make changes for swagger-ui and it works fine, whereas v2/api-docs is still hosted at http:///context-path>. I tried adding config:

springfox:
  documentation:
    swaggerUi:
      baseUrl: /data/api/docs
    swagger:
      v2:
        path: /data/api/docs/v2/api-docs

Which did not solve issue. Can you provide me a way to achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant