- Notifications
You must be signed in to change notification settings - Fork 1.5k
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:
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?
