Skip to content

Commit

Permalink
chore: retire export memos
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Aug 28, 2024
1 parent 9bea6e1 commit a8ea280
Show file tree
Hide file tree
Showing 7 changed files with 455 additions and 811 deletions.
33 changes: 0 additions & 33 deletions docs/apidocs.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,27 +356,6 @@ paths:
type: string
tags:
- MemoService
/api/v1/memos:export:
post:
summary: ExportMemos exports memos.
operationId: MemoService_ExportMemos
responses:
"200":
description: A successful response.
schema:
$ref: '#/definitions/v1ExportMemosResponse'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/googlerpcStatus'
parameters:
- name: body
in: body
required: true
schema:
$ref: '#/definitions/v1ExportMemosRequest'
tags:
- MemoService
/api/v1/reactions/{reactionId}:
delete:
summary: DeleteMemoReaction deletes a reaction for a memo.
Expand Down Expand Up @@ -2381,18 +2360,6 @@ definitions:
properties:
symbol:
type: string
v1ExportMemosRequest:
type: object
properties:
filter:
type: string
title: Same as ListMemosRequest.filter
v1ExportMemosResponse:
type: object
properties:
content:
type: string
format: byte
v1HTMLElementNode:
type: object
properties:
Expand Down
16 changes: 0 additions & 16 deletions proto/api/v1/memo_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ service MemoService {
option (google.api.http) = {delete: "/api/v1/{name=memos/*}"};
option (google.api.method_signature) = "name";
}
// ExportMemos exports memos.
rpc ExportMemos(ExportMemosRequest) returns (ExportMemosResponse) {
option (google.api.http) = {
post: "/api/v1/memos:export"
body: "*"
};
}
// ListMemoProperties lists memo properties.
rpc ListMemoProperties(ListMemoPropertiesRequest) returns (ListMemoPropertiesResponse) {
option (google.api.http) = {get: "/api/v1/{name=memos/*}/properties"};
Expand Down Expand Up @@ -260,15 +253,6 @@ message DeleteMemoRequest {
string name = 1;
}

message ExportMemosRequest {
// Same as ListMemosRequest.filter
string filter = 1;
}

message ExportMemosResponse {
bytes content = 1;
}

message ListMemoPropertiesRequest {
// The name of the memo.
// Format: memos/{id}. Use "memos/-" to list all properties.
Expand Down
Loading

0 comments on commit a8ea280

Please sign in to comment.