8000 swagger-ui.html appears to be empty · Issue #2093 · springfox/springfox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
swagger-ui.html appears to be empty #2093
Closed
@ghost

Description

Hi!

I want to use Springfox for generating a documentation but right now I need it more for the extraction of a Swagger YAML file which I'd like to use with rest-client-generator in order to generate a Typescript REST client.

In my project I'm using, additionally to Spring Boot dependencies, the following dependencies for Springfox:

<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger2</artifactId>
    <version>2.7.0</version>
</dependency>

<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>2.7.0</version>
</dependency>

and in my web security configuration I am ignoring the relevant endpoints:

web.ignoring().antMatchers("/*", "/pub/**",
    "/v2/**",      // Swagger
    "/api-docs/**" // Swagger
);

If I go to http://localhost:8080/v2/api-docs I can see the JSON output which consists of all endoints - also those which I actually do not intend to make public.

However, my first question would be how I can extract the content into a YAML file - if that is even possible at all.

If I further go to http://localhost:8080/swagger-ui.html all I see is this:

screenshot from 2017-11-06 19-15-51

I don't know what I'm supposed to see but something tells me this is not it.

Any idea why this is the case?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0