Questions tagged [springfox]

The Springfox suite of java libraries is all about automating the generation of machine and human readable specifications for JSON APIs written using the spring family of projects.

The Springfox suite of java libraries is all about automating the generation of machine and human readable specifications for JSON APIs written using the spring family of projects. Springfox works by examining an application, once, at runtime to infer API semantics based on spring configurations, class structure and various compile-time java annotations.

Useful links

794 questions
0
votes
1 answer

swagger doesn't recognize api description

I instatiate docket like this @Bean public Docket api() { return new Docket(DocumentationType.SWAGGER_2) .select() .apis(RequestHandlerSelectors.basePackage("com.config.internal")) …
lapots
  • 12,553
  • 32
  • 121
  • 242
0
votes
1 answer

Swagger UI doesn't show module name in its url and

I have followed https://dzone.com/articles/spring-boot-restful-api-documentation-with-swagger and developing the Swagger using the springfox-swagger-ui and springfox-swagger2 version 2.9.2. I used the below configurations, but I want module-name to…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
1 answer

Springfox swagger ui support for java 7

I am trying to integrate springfox swagger ui into my spring MVC project. I have already integrated swagger 2.9.2 and it was working all fine. Now I found out that this version does not support java 7 but I need this for one legacy project. From…
RS_Mob
  • 354
  • 1
  • 3
  • 13
0
votes
0 answers

How to summarize a object type in swagger?

I'm using springfox-swagger2 version 2.9.2 and springfox-swagger-ui version 2.9.2 to documentation a Spring Boot application through Swagger. The problem is that a Object have many subclasses and make the example object stay very big, showing…
Eduardo Cintra
  • 101
  • 1
  • 11
0
votes
1 answer

How Do I Relocate swagger-ui.html Using springfox and JAX-RS?

I am using JAX-RS with Spring Boot and springfox to generate the swagger-ui from annotations. Currently the docs are located at http://localhost:8080/swagger-ui.html However, I now have a requirement to move this to…
opticyclic
  • 7,412
  • 12
  • 81
  • 155
0
votes
0 answers

How can I prevent unused values in a JSON response from returning as null with Springfox in Java?

For example, my Spring boot Java API was returning: { "contact": "John Smith", "badgeNumber": "12345", "inProcess": true } Then I added SpringFox dependencies for Swagger and now all my API is returning: { "contact": "John…
doct03
  • 316
  • 3
  • 9
0
votes
1 answer

404 not found on swagger api-docs using SpringMVC and JDK 1.6

I'm working on an application which use jdk 1.6, SpringMVC but not SpringBoot and i have trouble to make swagger works. Indeed, my console is saying to me that swagger seem ready to be requested as shown in this log : 13:09:44:213 CEST] 000000f8…
LenweSeregon
  • 132
  • 1
  • 10
0
votes
1 answer

Secure Springfox Swagger2 UI

I am using springfox swagger2 and it is working right. It was just a basic setup/configuration as I am really new with swagger. But it is accessible to all who have the url. I would like it not to be accessible to everyone and to have a login screen…
Borgy Manotoy
  • 1,960
  • 5
  • 27
  • 42
0
votes
0 answers

Trying to make OpenID Oauth with springfox

I am getting "Response Identifier not found" error Following is my code public Docket api() { return new Docket(DocumentationType.SWAGGER_2) .select() .apis(RequestHandlerSelectors.basePackage("com.example.demo")) …
0
votes
0 answers

Making Implicit OAuth2.0 flow through springfox

I am trying to add authentication in the swagger. I am using springfox for using swagger. How can i add implicit Oauth2 in the swagger.
0
votes
1 answer

Spring fox swagger ui version 2.8.0 Example Value

I am using springfox-swagger2 and springfox-swagger-ui version 2.8.0 which was not exists in previous version 2.5.0. I am seeing in this version there is an Example Value added in the request however, the example shows default as application/xml as…
Sujit
  • 468
  • 1
  • 8
  • 22
0
votes
0 answers

Stuck "Fetching Resource List" on swagger-ui.html page

Getting below error: My homepage looks like: Pom.xml: POM
0
votes
0 answers

404 in accessing http://localhost:9090/swagger-ui.html

I have a spring boot application and I want to generate swagger documentation for my APIs using springfox. Getting 404 undefined error while hitting http://localhost:9090/swagger-ui.html Please find the stack trace…
0
votes
0 answers

how can i publish swagger doc generated by springfox as part of the build process

We are using springfox to generate swagger docs for our springboot application at runtime. We would like to publish these somewhere as part of our jenkins pipeline. Is there a way to generate these static docs as part of the build that we can then…
thejames42
  • 447
  • 6
  • 22
0
votes
2 answers

Spring: Using Oauth2 and HttpBasicAuth together

I'm using Spring Boot 2.0.0 For securing my REST API i'm using Oauth2 with JWT, which works perfectly fine. The problem is: I'm also using Springfox Swagger which should be secured by BasicAuth. So that the user is challenged if he points his…