I have a REST service method annotated with io.swagger.annotations.ApiOperation @ApiOperation(value = “some string”) I need some string to generate newlines in the HTML page swagger-ui.html (i.e. in the Swagger UI page where I see my docs and I can test my API methods). I tried putting <br/> and n in some string, and anything I could think of, and anything
Tag: swagger-ui
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
How to remove controller list from Swagger UI
I’m using springfox-swagger-ui 2.8.0 which ships with Swagger UI 3.7.0. I want to get rid of the controller list in front of the api documentation page, pretty useless for me (every tab is empty). I’ve already tried to annotate the controller class with @ApiIgnore, but of course this removes the rest api documentation as well, which I need. Basically, I