jaxio / celerio-angular-quickstart

Generate an Angular 5 CRUD application from an existing database schema (we provide a sample one)
Apache License 2.0
479 stars 138 forks source link

Swagger Problem not solved #53

Open CodeFreezr opened 6 years ago

CodeFreezr commented 6 years ago

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 commented 6 years ago

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.rest.ProjectResource.findById(java.lang.Integer) throws java.net.URISyn taxException

CodeFreezr commented 6 years ago

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

DevRonin commented 6 years ago

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)