Skip to content

Commit

Permalink
feat(guardian): add pagination support in list resource. (#50)
Browse files Browse the repository at this point in the history
* feat(guardian): add pagination support in list resource. Related to : goto/guardian#76

* add total field to return the count of total records present according to the filters

---------

Co-authored-by: anjali.agarwal <[email protected]>
  • Loading branch information
2 people authored and sumitaich1998 committed Jan 31, 2024
1 parent c59eaf6 commit fed3345
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gotocompany/guardian/v1beta1/guardian.proto
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,19 @@ message ListResourcesRequest {
string urn = 5;
string name = 6;
repeated string details = 7;
uint32 size = 8 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
uint32 offset = 9 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
}

message ListResourcesResponse {
repeated Resource resources = 1;
uint32 total = 2;
}

message GetResourceRequest {
Expand Down

0 comments on commit fed3345

Please sign in to comment.