/** GET /equipos -> get all the equipos. */ @RequestMapping( value = "/equipos", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<List<Equipo>> getAll( @RequestParam(value = "page", required = false) Integer offset, @RequestParam(value = "per_page", required = false) Integer limit) throws URISyntaxException { Page<Equipo> page = equipoRepository.findAll(PaginationUtil.generatePageRequest(offset, limit)); HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/equipos", offset, limit); return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK); }