Skip to content

Commit

Permalink
add param name
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhoan-axonivy committed Jun 25, 2024
1 parent 4155f43 commit be5eb96
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public ProductController(ProductService service, ProductModelAssembler assembler
@GetMapping()
public ResponseEntity<PagedModel<ProductModel>> findProducts(
@RequestParam(required = true, name = "type") String type,
@RequestParam(required = false, name = "keyword") String keyword, Pageable pageable) {
@RequestParam(required = false, name = "keyword") String keyword,
@RequestParam(required = false, name = "pageable") Pageable pageable) {
Page<Product> results = service.findProducts(type, keyword, pageable);
if (results.isEmpty()) {
return generateEmptyPagedModel();
Expand Down

0 comments on commit be5eb96

Please sign in to comment.