Hi guys, did you try to execute this example? https://github.com/RedHatTraining/DO378-apps/tree/master/expense-restful-service on a local laptop? I tried, but the swagger-ui didn't work.
The resources yes, but when I call the swagger URL I receive the message "Resource not found"
Okay, I see the issue.
I see someone raised the same issue as a defect in GitHub which occur to some of the users when quarkus application start with dev mode like: mvn quarkus:dev and access swagger like this: http://localhost:8080/q/swagger-ui/.
Location of swagger api where it contains the index.html after running in quarkus:dev mode not having all the required resources to load the content. AFAIK, 404 means here that page is blank without any content.
But, if you will scroll down the page, you will see Additional endpoints section where /swagger-ui/ endpoint listed. Click on this and it will take you to the list of swagger endpoints which is actually the url which I pasted in my previous comment (http://localhost:8080/swagger-ui/). So, this will not actually block you to test.
Happy learning.
Thanks!
Vikas Sharma
Hi Rogerio,
Can you specify what URL you're trying to access the swagger?
Thanks!
Vikas Sharma
I tried this URL http://localhost:8080/swagger-ui/
Okay, I see the issue.
I see someone raised the same issue as a defect in GitHub which occur to some of the users when quarkus application start with dev mode like: mvn quarkus:dev and access swagger like this: http://localhost:8080/q/swagger-ui/.
Location of swagger api where it contains the index.html after running in quarkus:dev mode not having all the required resources to load the content. AFAIK, 404 means here that page is blank without any content.
But, if you will scroll down the page, you will see Additional endpoints section where /swagger-ui/ endpoint listed. Click on this and it will take you to the list of swagger endpoints which is actually the url which I pasted in my previous comment (http://localhost:8080/swagger-ui/). So, this will not actually block you to test.
Happy learning.
Thanks!
Vikas Sharma
@viksharm you are right. I found the endpoint http://localhost:8080/q/swagger-ui/ and it works. Tks for your support.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.