Skip to content
Snippets Groups Projects
Commit 9277c1ad authored by evilimkova's avatar evilimkova
Browse files

Adding Pageable as @RequestBody

parent f28690fa
No related branches found
No related tags found
4 merge requests!31M2,!29M2 exercise,!27Draft: M2 user,!19M2 certificate
......@@ -89,11 +89,10 @@ public class CertificateController {
/**
* Find certificates and return them in a paginated format
*
* @param page the page number of the certificates to retrieve
* @return a Result object containing a list of CertificateDto objects and pagination information
*/
@GetMapping("/findAll")
public Page<CertificateSimpleDto> findAllCertificates(Pageable pageable) {
public Page<CertificateSimpleDto> findAllCertificates(@RequestBody Pageable pageable) {
return certificateFacade.findAll(pageable);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment