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 Problem not solved #53

Open
CodeFreezr opened this issue Oct 1, 2017 · 3 comments
Open

Swagger Problem not solved #53

CodeFreezr opened this issue Oct 1, 2017 · 3 comments

Comments

@CodeFreezr
Copy link

CodeFreezr commented Oct 1, 2017

Today, 1.10.2017, I tried a complete fresh rebuild of the quickstart from scratch.
After Login and navigate to http://localhost:4200/swagger-ui.html

I've got the same error message as described in #50.
My Setup did not change.

2017-10-01 16_11_41-swagger ui

What kind of information do you need to solve it?

@CodeFreezr
Copy link
Author

CodeFreezr commented Oct 2, 2017

Here a Log-Excerpt. Not sure if this lead to the root cause of the swagger issue: INFO 15520 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/api/projects/{id}],methods=[GET],produces=[application/json]}" on
to public org.springframework.http.ResponseEntity<com.mycompany.myapp.dto.ProjectDTO> com.mycompany.myapp.rest.ProjectResource.findById(java.lang.Integer) throws java.net.URISyn
taxException

@CodeFreezr
Copy link
Author

To narrow down: Starting as jar swagger works. Is this intended?

@DevRonin
Copy link

DevRonin commented Feb 4, 2018

Seem that is a issue with swagger version and more.
quickstart\pom.xml -> springfox-swagger2 2.7.0 springfox-swagger-ui 2.7.0
quickstart-generated\pom.xml -> springfox-swagger2 2.0.3 springfox-swagger-ui 2.0.3

API generation at http://localhost:4200/v2/api-docs/ works only with swagger =< 2.6.1
But still can't infer base URL
Only on quickstart-generated works from developer mode, don't know why.

On my project, using swagger 2.6.1
http://localhost:8080/swagger-ui.html works
http://localhost:4200/swagger-ui.html doesn't work (and no popup with missing base url)

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

2 participants