Accessing Swagger Documentation with JHipster

user962206 picture user962206 · Jun 6, 2017 · Viewed 7.1k times · Source

I have generated an app server only through jhipster using only.

yo jhipster --skip-client

It had generated all the necessary api calls I needed however upon accessing

http://localhost:8080/swagger-ui/index.html

I ended on a 404. I was under the impression that swagger is included however it cant seem to be accessed, although the swagger api endpoints is available.

Answer

KyelJmD picture KyelJmD · Jun 6, 2017

You can't since you are only generating the rest apis. if you want to see the api-docs follow the instructions mentioned here

Once you have succesfully cloned the said repository

open dist/index.html and simply paste the source there

http://localhost:8080/v2/api-docs

it should look like something like thisenter image description here