Skip to content

Commit

Permalink
update http path
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkeycxy committed Apr 16, 2024
1 parent d4d254d commit 18103b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions temporal/api/cloud/cloudservice/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,44 +129,44 @@ service CloudService {
// Get all groups
rpc GetGroups (GetGroupsRequest) returns (GetGroupsResponse) {
option (google.api.http) = {
get: "/api/v1/groups",
get: "/api/v1/cloud/groups",
};
}

// Get a group
rpc GetGroup (GetGroupRequest) returns (GetGroupResponse) {
option (google.api.http) = {
get: "/api/v1/groups/{group_id}",
get: "/api/v1/cloud/groups/{group_id}",
};
}

// Create new a group
rpc CreateGroup (CreateGroupRequest) returns (CreateGroupResponse) {
option (google.api.http) = {
post: "/api/v1/groups",
post: "/api/v1/cloud/groups",
body: "*"
};
}

// Update a group
rpc UpdateGroup (UpdateGroupRequest) returns (UpdateGroupResponse) {
option (google.api.http) = {
post: "/api/v1/groups/{group_id}",
post: "/api/v1/cloud/groups/{group_id}",
body: "*"
};
}

// Delete a group
rpc DeleteGroup (DeleteGroupRequest) returns (DeleteGroupResponse) {
option (google.api.http) = {
delete: "/api/v1/groups/{group_id}",
delete: "/api/v1/cloud/groups/{group_id}",
};
}

// Set a group's access to a namespace
rpc SetGroupNamespaceAccess (SetGroupNamespaceAccessRequest) returns (SetGroupNamespaceAccessResponse) {
option (google.api.http) = {
post: "/api/v1/namespaces/{namespace}/groups/{group_id}/access",
post: "/api/v1/cloud/namespaces/{namespace}/groups/{group_id}/access",
body: "*"
};
}
Expand Down

0 comments on commit 18103b8

Please sign in to comment.