A Spring Boot starter that adds a /swagger-ui/ endpoint containing API documentation.
Questions tagged [springfox-boot-starter]
33 questions
1
vote
1 answer
Swagger UI is rendered incorrectly after upgrading Springfox from 2.x to 3.0.0
I am working on a Spring Boot 2.2.x application. I have upgraded the Springfox version from 2.5.x to 3.0.0 by following these instructions:
migration from 2.x to 3.0.0
Swagger/Springfox configuration:
private ApiInfo apiInfo() {
return new…

JingJong
- 207
- 1
- 3
- 14
1
vote
0 answers
Openapi Springfox 3.0 examples
I have a yaml file which has examples for request body. but swagger-ui springfox generated json file generated by springfox doesn't show the request body example, which makes it to show schema example.
Any workaround for displaying request body…

Sharath Kolibyle
- 31
- 3
1
vote
0 answers
Springfox 3.0 Switch to old Display URL back to swagger-ui.html
My team recently Migrated to Springfox 3.0, looks nice, works well but the change in Display URL swagger-ui.html to swagger-ui/index.html is a little annoying. I am having trouble finding a way to switch this back without switching to 2.9 or older…

river226
- 73
- 12
0
votes
0 answers
How to use Swagger @ApiOperation annotation in Kotlin?
How to convert the following Swagger annotations from Java to Kotlin?
@ApiOperation(value = "Create a person", notes = "API login ", extensions = {
@Extension(properties = { @ExtensionProperty(name = "x-42c-no-authentication", value = "true") })
})

Jony Mittal
- 151
- 6
- 23
0
votes
0 answers
0
votes
0 answers
Create Swagger Spec Json From Spring Projects Automatically using a Terminal / Shell Based Tool
Problem
We have a bunch of existing REST Services written in Java in a framework written on top of Springboot.
In CI/CD Pipeline, we want to check if the Spec in Swagger Hub for a given Service matches with current HEAD of the branch.
One way to do…

D159
- 243
- 1
- 3
- 11
0
votes
0 answers
Getting "Finished Loading Resource Information. Rendering Swagger UI..." on loading swagger after migration from spring to sprinboot
We just migrated our application from Spring to Sprinboot (2.7.0). whenever i load swagger, all the apis dont get loaded and i get this line "Finished Loading Resource Information. Rendering Swagger UI..." on the top.
But…
0
votes
1 answer
spring boot - springfox-boot-starter integration giving 404 with no error
Java Version: 19.0.1
Springboot: 3.0.1
using dependency:
io.springfox
springfox-boot-starter
3.0.0
Swagger configuration class
@Configuration
public…

Prafulla Kumar Sahu
- 9,321
- 11
- 68
- 105
0
votes
0 answers
Applying ApiOperation's to all or subset of controllers
I have generated a JHipster application without a frontend, thus I wanted to congfigure swagger ui on the server side.
I ended up having to define a Docket and WebMvcEndpointHandlerMapping bean which seem to do the trick.
In the swagger UI, in order…

1977
- 2,580
- 6
- 26
- 37
0
votes
0 answers
SpringFox Swagger 3.0.0: Change swagger-ui.html location without affecting APIs
I have a bunch of REST APIs accessible under a certain domain, let's call it mydomain.com. The REST endpoints themselves are of form mydomain.com/sys1/api/v1/data, mydomain.com/sys2/api/v1/coi/foruser/{user}, etc. and they must stay that way.
When…

Jason
- 2,495
- 4
- 26
- 37
0
votes
1 answer
Springfox error "Unable to find a model that matches key" for {namespace='java.lang', name='Class�ConstraintValidator�object,object��'}
I'm getting these error messages in logs:
[12:15 11:48:20.957] [ERROR][request id: ffdedde3-f147-4fc2-9f9f-ad0c76c1a868][springfox.documentation.swagger2.mappers.ReferenceModelSpecificationToPropertyConverter] - Unable to find a model that matches…

GeumLiAh
- 11
- 3
0
votes
1 answer
springfox to springdoc-openapi-ui migration
I have a spring mvc I am migrating from springfox to springdoc swagger
I have followed the steps mentioned in this link, but when I try to access the swagger page, it gives me below error
no mapping found for http request with url…

Doctor Who
- 747
- 1
- 5
- 28
0
votes
1 answer
Swagger. "No handler found" error (SimpleUrlHandlerMapping not injected)
When I try to access the Swagger UI page (.../service-name/swagger-ui.html) I receive No handler found for GET ... error.
I did some research and found out that SimpleUrlHandlerMapping bean, which is required for swagger page to work not created by…

Aleksei Litvin
- 153
- 7
0
votes
1 answer
Unable to add application name to base URL after adding swagger3 in my Springboot project
When I was using springfox-swagger 2.9.0, I was using below code in my project.
@Configuration
@EnableSwagger2
public class SwaggerConfig {
@Bean
public Docket api() {
Docket docket = null;
try{
…

Sachin Pandey
- 47
- 1
- 8
0
votes
1 answer
Swagger @ApiResponse should show List of ErrorObject i.e List ? How is this possible?
The swagger version I am using is as below and My question is related to the @ApiResponse annotation.
io.springfox
springfox-swagger2
2.9.2
…

samshers
- 1
- 6
- 37
- 84