I have a method in a Java class with signatures, as shown below, and I want to add Swagger Rest documentation for it.
public List<List<MyCustomClass>> getMyCustomClasses(String id){
}
I want to know if there is a way to return either a response or responseContainer in order to return List of List objects? Something like below?
@ApiOperation(value = "find MyCustomClass objects by id", response =MyCustomClass.class , responseContainer = "List<List>")
I have no problem creating documents for swagger if the response of the method is just List where I could specify the answer = MyCustomClass.class, responseContainer = "List", but having a problem only if it is a List of List as the return type.
thank
Ravi
source
share