Skip to content

Commit

Permalink
add page_num and page_size for ListOrganizationsRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanGIT07 committed Dec 23, 2024
1 parent 59b9faf commit be0262b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2579,7 +2579,6 @@ message ListOrganizationsByUserResponse {

message ListOrganizationsByCurrentUserRequest {
string state = 1;

}

message ListOrganizationsByCurrentUserResponse {
Expand Down Expand Up @@ -3042,6 +3041,20 @@ message OrganizationRequestBody {
message ListOrganizationsRequest {
string user_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The user ID to filter by. It can be used to list all the organizations that the user is a member of. Otherwise, all the organizations in the Frontier instance will be listed."}];
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 ListOrganizationsResponse {
Expand Down

0 comments on commit be0262b

Please sign in to comment.