I am trying to display a custom container as a success response in swagger. I am unable to describe the desired model for this
@ApiResponse (code = 200, message = "Successfully retrieved report info", response = PagedResponse.class
THis PagedResponseInfo is actually a custom collection
public class PagedResponse<T> {
private long page;
private long pageSize;
private long totalRecords;
private List<T> records;
}
How do I specify the container for this if it were to contain a collection of Report objects in it? Could someone help me out please? I use springfox swagger -2.9.2 in spring boot