it’s my swagger Config file Student Controller StudentDTO class My Repository Myapplication class application.properties pom.xml When I run this application everything looks fine but I can’t see the POST/PUT/or DELETE. I try to many things I find from Internet but it doesn’t work. I new on t…
Tag: springfox
Replace @PathVariable object with ID only for Springdoc
I am currently trying to migrate from Springfox to Springdoc. Most of my endpoints contain a @PathVariable Instance. Obviously I am only passing in the ID of the instance and Spring would automatically resolve the object for me. Here is an example: Called as /api/myInstance/role. Springfox would handle this c…
is it possible to make swagger do not show the reference project api
Recently I found my swagger UI document shows so much api entry point. Finally I found that the document also shows other project entry point. For example, Spring Boot project A imported Spring Boot project B and C, but the Spring Boot project A shows A + B + C’s api entry point in project A’s swa…
HTTP not present on Schemes Swagger dropdown
I’m using springfox-swagger-ui and for whatever reason, only https scheme is available on the dropdown, even if I reach swagger ui through http. I can’t use https for the moment, so need that scheme enabled but couldn’t find anything on the documentation. Any idea why is this happening? Answ…
How to handle header field with swagger in a java project?
I want to add header parameters to swagger ui so that the user can pass these values also. Could someone guide on what the java code for this would look like. I am using springfox-swagger2 and springfox-swagger-ui version 2.9.x (There are other post of SOF that describe about adding these through swagger edit…
springfox ApiModelProperty position sorting not working
In my spring boot application, I cannot be able to manage my swagger JSON with fields ordered properly on @ApiModel annotated class. Firstly, I imported springfox lib into my pom.xml: Secondly, I created SwaggerConfig.java: Thirdly, I created my PersonDTO annotated by @ApiModel: Then, when I requesting for Js…
Hiding unimportant getter methods from swagger UI in Java [duplicate]
This question already has answers here: How to hide a parameter in swagger? (9 answers) Closed 27 days ago. I have two fields in my class startDate and endDate of LocalDateTime. Internally, these need to be returned as Optional<ZonedDateTime>, while in the query they are provided as LocalDateTimes. Swag…
Unmarshalling query params into object using Swagger/Springfox and Spring Boot
I’ve got a search endpoint in my REST service. I’m using Spring Boot, so I’ve got a @RestController setup with a method that returns search results based on a search query. This is the method definition: I was hoping that SwaggerUI would show the SearchQuery’s fields as separate query …