ページ分割RESTからすべての値を取得することは可能ですか?たとえば、私はRESTを持っています:ページ分割のすべての値を取得
@RequestMapping(value = "/divisions", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public ResponseEntity<List<Division>> getAllDivisions(Pageable pageable)
throws URISyntaxException {
log.debug("REST request to get a page of Divisions");
Page<Division> page = divisionRepository.findAll(pageable);
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/divisions");
return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);
}
私のアプリケーションでは、すべての部門を取得する必要があります。私はこのようなものを試しました: http://localhost:9000/api/divisions?size=MAXしかし、それは動作しません。 これに対して新しいRESTを作成する必要がありますか?