Java Quarkus remove methods from Swagger

Viewed 322

I am using an Swagger interface for a REST API app in Quarkus and seems that all my methods/Classes are show on Swagger, so i want to removed some of them, to not be visible anymore into Swagger. I have try with @Hidden, @Ignore, @Operation(hidden = true), and so one but those Classes are still visible there. Any idea ?

1 Answers

Have you tried @Schema(hidden=true) Pojo classes that are used as input or output typically ends up in the schema model. For methods that represents an operation, @Operation(hidden=true) should work

Related