chore: tweak link styles

This commit is contained in:
Steven
2024-03-16 23:35:36 +08:00
parent 9c1e2f8137
commit 335a0312f2
7 changed files with 222 additions and 257 deletions

View File

@@ -151,6 +151,25 @@ paths:
type: string
tags:
- InboxService
/api/v2/link_metadata:
get:
operationId: LinkService_GetLinkMetadata
responses:
"200":
description: A successful response.
schema:
$ref: '#/definitions/v2GetLinkMetadataResponse'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/googlerpcStatus'
parameters:
- name: link
in: query
required: false
type: string
tags:
- LinkService
/api/v2/memos:
get:
summary: ListMemos lists memos with pagination and filter.
@@ -650,25 +669,6 @@ paths:
type: string
tags:
- MemoService
/api/v2/metadata:
get:
operationId: LinkService_GetLinkMetadata
responses:
"200":
description: A successful response.
schema:
$ref: '#/definitions/v2GetLinkMetadataResponse'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/googlerpcStatus'
parameters:
- name: link
in: query
required: false
type: string
tags:
- LinkService
/api/v2/resources:
get:
summary: ListResources lists all resources.
@@ -1813,7 +1813,7 @@ definitions:
v2GetLinkMetadataResponse:
type: object
properties:
metadata:
linkMetadata:
$ref: '#/definitions/v2LinkMetadata'
v2GetMemoByNameResponse:
type: object

View File

@@ -14,7 +14,7 @@ func (*APIV2Service) GetLinkMetadata(_ context.Context, request *apiv2pb.GetLink
}
return &apiv2pb.GetLinkMetadataResponse{
Metadata: &apiv2pb.LinkMetadata{
LinkMetadata: &apiv2pb.LinkMetadata{
Title: htmlMeta.Title,
Description: htmlMeta.Description,
Image: htmlMeta.Image,