mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat(api): implement get memo by uid
This commit is contained in:
@@ -37,6 +37,11 @@ service MemoService {
|
||||
option (google.api.http) = {get: "/api/v1/{name=memos/*}"};
|
||||
option (google.api.method_signature) = "name";
|
||||
}
|
||||
// GetMemoByUid gets a memo by uid
|
||||
rpc GetMemoByUid(GetMemoByUidRequest) returns (Memo) {
|
||||
option (google.api.http) = {get: "/api/v1/memos:by-uid/{uid}"};
|
||||
option (google.api.method_signature) = "uid";
|
||||
}
|
||||
// UpdateMemo updates a memo.
|
||||
rpc UpdateMemo(UpdateMemoRequest) returns (Memo) {
|
||||
option (google.api.http) = {
|
||||
@@ -254,6 +259,11 @@ message GetMemoRequest {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message GetMemoByUidRequest {
|
||||
// The uid of the memo.
|
||||
string uid = 1;
|
||||
}
|
||||
|
||||
message UpdateMemoRequest {
|
||||
Memo memo = 1;
|
||||
|
||||
|
Reference in New Issue
Block a user