10

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.

user962206
  • 15,637
  • 61
  • 177
  • 270

2 Answers2

14

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

KyelJmD
  • 4,682
  • 9
  • 54
  • 77
  • I think the first link is outdated hence the answer becomes incoherent, as the first is talking about swagger-editor and the second swagger-ui. Can you explain here what we need to do exactly? – Philippe Simo Dec 16 '18 at 14:06
1

Simply add the following dependency. You are missing the dependency here.

<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>2.5.0</version>
</dependency>
RakhuNathan
  • 83
  • 11