Skip to content

Commit

Permalink
update controller to use ParameterObject
Browse files Browse the repository at this point in the history
As used in the metadata endpoint we want Swagger to be  able to interpret and automatically generate pagination parameters like page, size, and sort.
  • Loading branch information
Hamza Jugon committed Oct 23, 2024
1 parent eabe909 commit 4edf413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public ResponseEntity<Page<HousekeepingPathResponse>> getAllPaths(
@Spec(path = "cleanupTimestamp", params = "deleted_after", spec = GreaterThan.class),
@Spec(path = "creationTimestamp", params = "registered_before", spec = LessThan.class),
@Spec(path = "creationTimestamp", params = "registered_after", spec = GreaterThan.class) }) Specification<HousekeepingPath> spec,
Pageable pageable) {
@ParameterObject Pageable pageable) {
return ResponseEntity.ok(housekeepingEntityService.getAllPaths(spec, pageable));
}

Expand Down

0 comments on commit 4edf413

Please sign in to comment.