feat: implement memo property

This commit is contained in:
Steven
2024-05-13 22:04:37 +08:00
parent 555b4fbe32
commit c561362d62
13 changed files with 883 additions and 593 deletions

View File

@@ -1462,6 +1462,36 @@ paths:
pattern: users/[^/]+
tags:
- UserService
/api/v1/{name}:rebuild:
post:
summary: RebuildMemoProperty rebuilds a memo property.
operationId: MemoService_RebuildMemoProperty
responses:
"200":
description: A successful response.
schema:
type: object
properties: {}
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/googlerpcStatus'
parameters:
- name: name
description: |-
The name of the memo.
Format: memos/{id}. Use "memos/-" to rebuild all memos.
in: path
required: true
type: string
pattern: memos/[^/]+
- name: body
in: body
required: true
schema:
$ref: '#/definitions/MemoServiceRebuildMemoPropertyBody'
tags:
- MemoService
/api/v1/{parent}/tags:
get:
summary: ListMemoTags lists tags for a memo.
@@ -1484,11 +1514,6 @@ paths:
required: true
type: string
pattern: memos/[^/]+
- name: rebuild
description: Rebuild the tags.
in: query
required: false
type: boolean
tags:
- MemoService
/api/v1/{parent}/tags/{tag}:
@@ -1765,6 +1790,8 @@ paths:
tags:
- UserService
definitions:
MemoServiceRebuildMemoPropertyBody:
type: object
MemoServiceRenameMemoTagBody:
type: object
properties: