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

How can I document a RestController of a Spring Boot webapp with Swagger?

I would like to add the following REST controller to an existing Spring Boot webapp and document it using Swagger: @RestController @Api(description="Querying concepts") public class KnowledgeModelController { private ConceptService…
Stefan Reisner
  • 607
  • 5
  • 12
0
votes
0 answers

How send token to header of Swagger

I have Spring Boot application. And I want to integrate swagger in my project. I am using springfox 2.7.0 and auth0 for authentication on swagger, but I have problem with send id_token from auth0 to header of swagger. This is my code for Swagger…
dzivi
  • 33
  • 1
  • 11
0
votes
1 answer

Swagger: Sending `Date` as an request header parameter in REST API

I need to send Date as part request header parameters to my REST API. I created Swagger-UI API document. If I tried accessing my API from Swagger-UI, the Date parameter is not getting delivered in application. If we change the name Date to Date1, It…
GOPI
  • 71
  • 2
  • 3
  • 8
0
votes
1 answer

Adding an API definition manually in swagger using springfox

I am using springfox for generating Swagger API documentation for REST APIs exposed by a spring boot application. I need to add documentation for an API manually for which there is no REST controller, technically. How can I manually add to the…
Soumya Kanti
  • 1,429
  • 1
  • 17
  • 28
0
votes
1 answer

How to enable swagger to accept oauth2 tokens?

I am usinig jhipster to generate a project, now Ive secured some endpoints with @PostMapping("/myEndpoint") @PreAuthorize("#oauth2.hasScope('write')") It works great but at swagger I cannot see where to send the token... Ive worked with swagger…
jpganz18
  • 5,508
  • 17
  • 66
  • 115
0
votes
1 answer

Springfox (swagger) - How to add dynamic attributs

I am trying to add new attribut in swagger definition in my java spring project. I have read documentation and specially https://springfox.github.io/springfox/docs/snapshot/#plugins But i was not able to add new attribute from scratch I am trying…
Mr2dishes
  • 407
  • 1
  • 6
  • 17
0
votes
0 answers

Integrating camel with springfox

How can we integrate camel with springfox for swagger api generation? I'm not sure if it's possible. Currently we are using camel-swagger-java component, but is not flexible enough for our use case below. As per my understanding springfox expects…
slashron
  • 277
  • 1
  • 4
  • 13
0
votes
3 answers

How can we specify the 'securityDefinitions', 'security' for api generated with swagger for camel REST service?

I'm having a rest service implemented using Apache Camel with DSL defined in XML. The rest services provides Swagger API in json using camel-swagger-java plugin Is springfox an alternative here? The api is generated correctly, but missing…
slashron
  • 277
  • 1
  • 4
  • 13
0
votes
3 answers

Auto generate REST api documentation via RAML from Spring MVC controllers

I am new to RAML. I want to auto generate my REST api documentation via RAML from my Spring MVC controllers. I know SpringFox has annotation based support for Swagger to auto generate api docs for spring mvc; Do we have a similar framework to auto…
Lina
  • 1,217
  • 1
  • 15
  • 28
0
votes
0 answers

Does Springfox 2.7.0 supports Spring 3.1.0

Currently my application is running in spring 3.1.0. I have planned to implement swagger in it. Please advise me which springfox runs in spring 3.1.0
Vishwa Dany
  • 327
  • 2
  • 16
0
votes
1 answer

Guava Issue with deploying spring boot app in websphere

I have spring boot app which is working fine when I run as java application. Now I followed steps from below url and tried deploying into websphere: How to deploy Spring Boot application in IBM Liberty and WAS…
javaMan
  • 6,352
  • 20
  • 67
  • 94
0
votes
1 answer

AssertJ Swagger test is stuck on executing

I'm trying to adopt Swagger in REST API development (Spring Boot web application). API documenting process and code generation based on swagger spec works good, and now I've faced a problem writing integration tests using assertj-swagger and…
naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259
0
votes
0 answers

How to make swagger using two array elements in an example?

I have an endpoint, which takes an array of gps coordinates to perform a routing. The first point is the start and the last one the finish. How can I provide an example with two entries? Neither @ApiParam nor @ApiImplicitParam worked so far. // I…
tgr
  • 3,557
  • 4
  • 33
  • 63
0
votes
0 answers

Controllers not picked up by SpringFox

Only the Account Resource is picked up by swagger. None of the other JHipster controllers (User Resource, etc.), or any of my custom controllers are picked up and shown by Swagger UI. I have not made any changes to the swagger configuration in my…
Jose Gulisano
  • 1,281
  • 3
  • 11
  • 12
0
votes
0 answers

Swagger Integration with spring boot

For one of the rest call /rest/task/addAttachmentToNote which is POST request, I'am getting OPTIONSand PATCH being displayed in the Swagger UI. Why?
Virat
  • 551
  • 4
  • 9
  • 23