Skip to content

Commit

Permalink
http-serivce: add delete tidbcluster api
Browse files Browse the repository at this point in the history
  • Loading branch information
z2665 committed Nov 4, 2023
1 parent e77905f commit bf432c8
Show file tree
Hide file tree
Showing 4 changed files with 631 additions and 507 deletions.
15 changes: 14 additions & 1 deletion cmd/http-service/idl/api/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,20 @@ message DeleteClusterReq {
}];
}

message DeleteClusterResp {}
message DeleteClusterResp {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "DeleteClusterResp"
description: "DeleteClusterResp is the response for deleting cluster."
}
};

bool success = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Whether the request is successful.",
example: "true"
}];
optional string message = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The message of the response."}];
}

message RestartClusterReq {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
Expand Down
Loading

0 comments on commit bf432c8

Please sign in to comment.