Skip to content

Commit

Permalink
feat(shield): delete user
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina committed Oct 2, 2024
1 parent e5213a2 commit bc7122b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gotocompany/shield/v1beta1/shield.proto
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ service ShieldService {
};
}

rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) {
option (google.api.http) = {
delete: "/v1beta1/users/{id}",
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User";
summary: "Remove a user";
};
}

// Group
rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -592,6 +602,12 @@ message ListUsersResponse {
repeated User users = 2;
}

message DeleteUserRequest {
string id = 1;
}

message DeleteUserResponse {}

message GroupRequestBody {
string name = 1 [(validate.rules).string.pattern = "^[A-Za-z0-9_-]+$"];
string slug = 2;
Expand Down

0 comments on commit bc7122b

Please sign in to comment.