memos/proto/api/v2/link_service.proto

28 lines
509 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package memos.api.v2;
import "google/api/annotations.proto";
option go_package = "gen/api/v2";
service LinkService {
rpc GetLinkMetadata(GetLinkMetadataRequest) returns (GetLinkMetadataResponse) {
2024-03-16 23:35:36 +08:00
option (google.api.http) = {get: "/api/v2/link_metadata"};
}
}
message GetLinkMetadataRequest {
2024-03-13 20:25:27 +08:00
string link = 1;
}
message GetLinkMetadataResponse {
2024-03-16 23:35:36 +08:00
LinkMetadata link_metadata = 1;
}
message LinkMetadata {
string title = 1;
string description = 2;
string image = 3;
}