I have a Spring Boot project with next dependency of Springfox:
io.springfox
spri
The scenario where we want to hide only a particular method(s) from the class. For swagger.v3 there is an annotation with name Hidden in io.swagger.core.v3:swagger-annotations:2.0.10 jar. Methods to be hidden can be annotated with Hidden annotation as shown below. The below method shows the method with DELETE operation which needs to be hidden from the swagger documentation.
@DELETE
@Hidden
public void deleteList(int id) {
//code goes here.
}