mirror of
https://github.com/aykhans/slash-e.git
synced 2025-06-15 04:17:50 +00:00
feat: impl delete shortcut apiv2
This commit is contained in:
@ -25,6 +25,11 @@ service ShortcutService {
|
||||
body: "shortcut"
|
||||
};
|
||||
}
|
||||
// DeleteShortcut deletes a shortcut by name.
|
||||
rpc DeleteShortcut(DeleteShortcutRequest) returns (DeleteShortcutResponse) {
|
||||
option (google.api.http) = {delete: "/api/v2/shortcuts/{name}"};
|
||||
option (google.api.method_signature) = "name";
|
||||
}
|
||||
}
|
||||
|
||||
message Shortcut {
|
||||
@ -92,3 +97,9 @@ message CreateShortcutRequest {
|
||||
message CreateShortcutResponse {
|
||||
Shortcut shortcut = 1;
|
||||
}
|
||||
|
||||
message DeleteShortcutRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message DeleteShortcutResponse {}
|
||||
|
Reference in New Issue
Block a user