Open Rouche opened 5 years ago
Duplicate https://github.com/jhipster/generator-jhipster/issues/8842
Not really duplicate since this one comes from online guide, configuration should be working.
Well, i had to download Swagger release 2.2.10, extract dist
forlder in BugTrackerJHipster\src\main\webapp\swagger-ui
Change url in index.html for
url = "/v2/api-docs";
Now i dont know why the files are not there when creating the monolitic application. Maybe some repo dont have the swagger files anymore.
Repo: https://github.com/Rouche/BugTrackerJHipster/tree/master/src/main/webapp/swagger-ui
I see the API but "Try it out" ends up with curl -X GET --header 'Accept: /' 'https://127.0.0.1/api/tickets/self?eagerload=false'
And
{
"error": "no response from server"
}
Hello, thanks for posting an issue. Let me get back to you asap :)
@Rouche I could not reproduce your error :/ On my machine (ubuntu 18.04) everything works fine and I can access swagger properly, and still see newly added API
Im on windows. Ill try when i get time to mount a Virtual box.
When navigating to API in part 05 of the guide, the page doesn't load, i get this in the console.
Every other menu are working ok. Any idea what could cause this?
It really seems like nothing from swagger-ui is deployed. (Or not at the right place?) Applcation tries to fetch them from
/swagger-ui/dist/
that directory is empty intarget/classes/static/
GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/marked.js net::ERR_ABORTED 404 index.html:22 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/highlight.9.1.0.pack.js net::ERR_ABORTED 404 index.html:21 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/swagger-ui.min.js net::ERR_ABORTED 404 index.html:20 GET https://8080-dot-3855032-dot-devshell.appspot.com/swagger-ui/dist/lib/backbone-min.js net::ERR_ABORTED 404 ..... and a lot more