Skip to content

Commit

Permalink
feat(compass): support pagination in SearchAssets (raystack#243)
Browse files Browse the repository at this point in the history
* feat(compass): support pagination in SearchAssets

* Add pagination support in SearchAssets API. `offset` would be the offset and `size` would be the page size. The changes are backward compatible
  • Loading branch information
bsushmith authored Feb 17, 2023
1 parent 33fc2cc commit d5ed379
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions odpf/compass/v1beta1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,16 @@ message SearchAssetsRequest {
unique: true,
ignore_empty: true
}];

uint32 offset = 7 [
(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "offset parameter defines the offset from the first result you want to fetch"
}
];
}

message SearchAssetsResponse {
Expand Down

0 comments on commit d5ed379

Please sign in to comment.