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 ?
CodePudding user response:
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
CodePudding user response:
Yes i have try both and that method is still visible into Swagger :(
@GET
@Produces(MediaType.TEXT_PLAIN)
@Operation(hidden = true)
@Schema(hidden=true)
public TemplateInstance getGetSMTest(@QueryParam("name") String name){
LOG.info("called page /getSMTest");
return getSMTest.data("name", name);
}