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

Springfox: Add global responses for some but not all endpoints

I have a select number of REST endpoints that share some responses. For example I have a controller with 3 methods with different paths: POST POST DELETE Last 2, POST and DELETE share 401 response. I want to describe it globally, without repeating…
Cortlendt
  • 2,190
  • 4
  • 29
  • 50
0
votes
0 answers

Java: Is it possible to use swagger-core annotations w/o any adapters?

I'm wondering is it possible to build Swagger documentation based only on swagger-core annotations w/o help of any adapters like jax-rs or springfox? Why asking the question: e.g. when using springfox it relies on Spring annotations like…
S. Pauk
  • 5,208
  • 4
  • 31
  • 41
0
votes
1 answer

Create pdf for Rest web services with Springfox

I'm using Spring (not Spring boot), Maven and Springfox. With the last plugin I can show the web services documentation through URL /swagger-ui.html but I need a document to share. I read about Swagger2Markup so I have imported into pom file this…
luca
  • 3,248
  • 10
  • 66
  • 145
0
votes
1 answer

Override the path of my API in Springfox Swagger

I am using Spring REST with Springfox Swagger, and I had a method such as @RequestMapping(method = RequestMethod.POST, value = "/my-methd") @ApiOperation(value = "My method") and all was working fine. Now I notice there is a spelling mistake in the…
Adrian Smith
  • 17,236
  • 11
  • 71
  • 93
0
votes
1 answer

Springfox tags not working on PagingAndSortingRepository

I'm using Spring Boot 1.5.8 with Springfox 2.8.0. I'm adding a tag to my PagingAndSortingRepository in an attempt to organize all the crud methods under a "Subject Operations" heading in the Swagger UI. However, the end result is that some of the…
BrianY
  • 195
  • 10
0
votes
1 answer

Springfox Swagger2 and Guava - java.lang.StackOverflowError

I added Springfox Swagger2 2.8.0 in my Spring Boot 2 project and during startup of the application, run into the following issue: com.google.common.util.concurrent.ExecutionError: java.lang.StackOverflowError at…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Schema Object “title” member using Springfox

I am using Springfox to write documentation for an Api and I am having some problems generating the documentation site using Dapperdox http://dapperdox.io because it requires that the optional schema object property “title” is present.…
Melissa Rojas
  • 78
  • 1
  • 10
0
votes
0 answers

From swagger editor able to get the JWT auth token, but from application which enabled swagger-ui using springfox is not working

Tested my auth server from swagger editor and is working fine. I'm able to get the token and authorization is happening without any issues. But, when I tried to integrate it with my web service where swagger UI is enabled using springfox…
0
votes
1 answer

SpringFox docket add request parameter to specific end point

I am using springfox to generate swagger urls for rest end points. I have a specific rest endpoint that does not require a request parameter on the controller level, but requires request parameter on a filter that pre-handles the request. I want to…
Yuval Zilberstein
  • 175
  • 1
  • 4
  • 11
0
votes
1 answer

Spring REST doc at centralized portal

I have tried doing some poc on springfox swagger with spring boot. It does generate swagger ui on the same host and port as my application is running. http://localhost:8080/swagger-ui.html My application is composed of multiple microservices…
vashishth
  • 2,751
  • 4
  • 38
  • 68
0
votes
1 answer

How to show @PostMapping parameters in swagger-ui generated docs?

I'm using springfox-swagger2 and springfox-swagger-ui for autogenerated REST documentation. Problem: any GET requests are documented just fine. But when it comes to POST requests, the request body parameter descriptions are not shown in the swagger…
membersound
  • 81,582
  • 193
  • 585
  • 1,120
0
votes
1 answer

Bundle Dependencies together

I have created a library and exported it as a jar. The library has a couple of dependencies as AspectJ and springfox. Every time an application adds this as a dependency in pom.xml, it has to add dependencies as SpringFox and Aspectj as well into…
Apurv
  • 315
  • 5
  • 14
0
votes
2 answers

Swagger2 not dispaying the documentation is UI format

I have RESTful web service which I have developed in spring boot. I have integrated the swagger2 in my application using Gradle build…
user4235401
0
votes
1 answer

Can I make springfox be package-aware?

Let's say I have following classes .../RabbitController .../test/SomeController springfox, without any swagger annotations, works fine. rabbit-controller some-controller When I add another…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
0 answers

Swagger-ui does not display all parameters

I have generated an simple Jhipster app and i create some entity with filter. The api-docs page only display the parameters for the two first attributes of the entities. Exemple This entity has : **integer** id **String** nom **String**…