Skip to content

Commit

Permalink
add pagination to ListOrganizations
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman Prasad authored and Aman Prasad committed Aug 14, 2024
1 parent bc60d55 commit 4ba9e98
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,25 @@ message ListGroupsResponse {
message ListAllOrganizationsRequest {
string user_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The user id to filter by."}];
string state = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The state to filter by. It can be enabled or disabled."}];
int32 page_size = 3 [
(validate.rules).int32 = {
gte: 1,
ignore_empty: true,
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The maximum number of users to return per page. The default is 50."}
];
int32 page_num = 4 [
(validate.rules).int32 = {
gte: 1,
ignore_empty: true,
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The page number to return. The default is 1."}
];
}

message ListAllOrganizationsResponse {
repeated Organization organizations = 1;
int32 total_pages = 2;
}

message ListProjectsRequest {
Expand Down

0 comments on commit 4ba9e98

Please sign in to comment.