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 this topic. I actually want to wrote null inputs and get exceptions for exception
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 correctly for me, only generating {instance} as a String mapping to
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 swagger UI, is it
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? Answer Add these following lines to your yaml page:
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 editor or are for other technologies, so they
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 Json output at url http://localhost:[port]/[servlet-context-path]/v2/api-docs, it seems that the position order is not
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. Swagger (Springfox v2.9.2) now shows the needed fields but also endDateWithTimezone.present and
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 params in the ui. It doesn’t; it just shows a generic