Skip to content
Advertisement

Tag: swagger

Swagger Codegen basePath is being ignored

I’m trying to generate some web services definitions using Swagger Codegen ยป 2.2.1 All configs are working and the classes are generate correctly by my .yaml definitions. Why the property basePath is being ignored? My @RestController generate using only paths definition: Expected (using basePath and paths definitions): What am I doing wrong? Did I forget something? My .yaml contract: Answer

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 generate java client code for swagger REST API documentation

My scenario is the following. I have a swagger .json eg.: http://petstore.swagger.io/v2/swagger.json I want to use a generated java client for the REST API above, like: Expexted output: cica and the new pet is stored according to the REST API implmentation. I have successfully generated server stub for the petstore with the command: But this maven project code is a

Advertisement