celerio-angular-quickstart icon indicating copy to clipboard operation
celerio-angular-quickstart copied to clipboard

Swagger Problem not solved

Open CodeFreezr opened this issue 7 years ago • 3 comments

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 avatar Oct 01 '17 14:10 CodeFreezr

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 avatar Oct 02 '17 18:10 CodeFreezr

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

CodeFreezr avatar Oct 06 '17 22:10 CodeFreezr

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)

DevRonin avatar Feb 04 '18 21:02 DevRonin