Skip to content

Commit

Permalink
feat(api): implement get memo by uid
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jul 11, 2024
1 parent 34e938a commit 1ab2c89
Show file tree
Hide file tree
Showing 10 changed files with 1,017 additions and 602 deletions.
286 changes: 222 additions & 64 deletions docs/apidocs.swagger.yaml

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions proto/api/v1/memo_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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) = {
Expand Down Expand Up @@ -254,6 +259,11 @@ message GetMemoRequest {
string name = 1;
}

message GetMemoByUidRequest {
// The uid of the memo.
string uid = 1;
}

message UpdateMemoRequest {
Memo memo = 1;

Expand Down
Loading

0 comments on commit 1ab2c89

Please sign in to comment.