Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(frontier):add pagination to ListOrganizations #368

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,27 @@ 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 organizations 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 count = 2[
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Total number of records present"}
];
}

message ListProjectsRequest {
Expand Down
Loading