-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Description
To follow the discussion from #3133
The idea is to generate Page/Pageable if the operation has a "x-spring-paginated" vendor-extension.
I just tried
public ResponseEntity<List<Pet>> findPetsByTags(@ApiParam(value = "Tags to filter by", required = true) @RequestParam(value = "tags", required = true) List<String> tags, Pageable pageable) {
ArrayList<Pet> petList = new ArrayList<Pet>();
Page<Pet> page = new PageImpl(petList, pageable, 0);
// do some magic!
return new ResponseEntity<List<Pet>>(page.getContent(), HttpStatus.OK);
}in spring-boot after including spring-data-commons and didn't have any issue.
I didn't have to configure any datasource.
Reactions are currently unavailable