Skip to content
Snippets Groups Projects
Commit 42bba49a authored by evilimkova's avatar evilimkova Committed by Martin Gargalovič
Browse files

Adding Pageable as @RequestBody

parent 7d6d40c0
No related branches found
No related tags found
3 merge requests!31M2,!28M2 user,!27Draft: M2 user
...@@ -89,11 +89,10 @@ public class CertificateController { ...@@ -89,11 +89,10 @@ public class CertificateController {
/** /**
* Find certificates and return them in a paginated format * 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 * @return a Result object containing a list of CertificateDto objects and pagination information
*/ */
@GetMapping("/findAll") @GetMapping("/findAll")
public Page<CertificateSimpleDto> findAllCertificates(Pageable pageable) { public Page<CertificateSimpleDto> findAllCertificates(@RequestBody Pageable pageable) {
return certificateFacade.findAll(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