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

Swagger Server URL doesn't match server.servlet.context-path property #3272

Closed
p29876 opened this issue Aug 22, 2024 · 0 comments · Fixed by #3273
Closed

Swagger Server URL doesn't match server.servlet.context-path property #3272

p29876 opened this issue Aug 22, 2024 · 0 comments · Fixed by #3273
Assignees
Labels
bug Confirmed or suspected bug rest-api Specific to/touches a part of the REST API

Comments

@p29876
Copy link
Member

p29876 commented Aug 22, 2024

Describe the bug
If you change the server.servlet.context-path to something other than / the swagger ui can no longer send requests

To Reproduce

  1. Change server.servlet.context-path to /test
  2. Start the Spring API
  3. Attempt to send a request from the Swagger UI

Expected behaviour
The request executes against /test/rest

Stack trace and errors
Swagger sends the request to /rest and fails

@p29876 p29876 added bug Confirmed or suspected bug rest-api Specific to/touches a part of the REST API labels Aug 22, 2024
@p29876 p29876 self-assigned this Aug 22, 2024
p29876 added a commit that referenced this issue Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed or suspected bug rest-api Specific to/touches a part of the REST API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant