Skip to content

Commit

Permalink
feat(shield): delete user (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina authored Oct 8, 2024
1 parent 448f150 commit a89ef79
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 @@ -614,6 +624,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 a89ef79

Please sign in to comment.