mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
564 B
Protocol Buffer
29 lines
564 B
Protocol Buffer
12 months ago
|
syntax = "proto3";
|
||
|
|
||
10 months ago
|
package memos.api.v1;
|
||
12 months ago
|
|
||
|
import "google/api/annotations.proto";
|
||
|
|
||
10 months ago
|
option go_package = "gen/api/v1";
|
||
12 months ago
|
|
||
|
service LinkService {
|
||
11 months ago
|
// GetLinkMetadata returns metadata for a given link.
|
||
12 months ago
|
rpc GetLinkMetadata(GetLinkMetadataRequest) returns (GetLinkMetadataResponse) {
|
||
10 months ago
|
option (google.api.http) = {get: "/api/v1/linkMetadata"};
|
||
12 months ago
|
}
|
||
|
}
|
||
|
|
||
|
message GetLinkMetadataRequest {
|
||
12 months ago
|
string link = 1;
|
||
12 months ago
|
}
|
||
|
|
||
|
message GetLinkMetadataResponse {
|
||
12 months ago
|
LinkMetadata link_metadata = 1;
|
||
|
}
|
||
|
|
||
|
message LinkMetadata {
|
||
|
string title = 1;
|
||
|
string description = 2;
|
||
|
string image = 3;
|
||
12 months ago
|
}
|