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

duplicate rootpath #356

Open
giorgioUnimi opened this issue May 15, 2024 · 0 comments
Open

duplicate rootpath #356

giorgioUnimi opened this issue May 15, 2024 · 0 comments

Comments

@giorgioUnimi
Copy link

I'am new to dropwziard and swagger and thank you to all developers that are working to swagger project because is really usefull. I have a problem . I use dropwizard 2.0.28 and your swagger version 2.0.0-1 as guide . I have set in my yml file
swagger:
contextRoot:/web/test/api
server:
rootPath: /api
applicationConnectors:

  • type: http
    port: 9600
    I have a proxy (web/test -> ip:9600)in the middle so I have to go ip/web/test/somepage to public assets and ip/web/test/api for rest api . So to arrive to swagger I think that I have to go to ip/web/test/api/swagger but If I use the conf of yml as up swagger is reachable at web/test/api/api and is wrong and If I use:
    swagger:
    contextRoot:/web/test
    server:
    rootPath: /api
    applicationConnectors:
  • type: http
    port: 9600
    I am not able to arrive to swagger because swagger are reachable to /web/test.
    How can I resolve ?
    Thank in advance

Giorgio

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

No branches or pull requests

1 participant