mirror of
https://github.com/usememos/memos.git
synced 2024-12-21 10:11:42 +03:00
31 lines
638 B
Protocol Buffer
31 lines
638 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package memos.api.v2;
|
|
|
|
import "google/api/annotations.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "gen/api/v2";
|
|
|
|
service ResourceService {
|
|
rpc ListResources(ListResourcesRequest) returns (ListResourcesResponse) {
|
|
option (google.api.http) = {get: "/api/v2/resources"};
|
|
}
|
|
}
|
|
|
|
message Resource {
|
|
int32 id = 1;
|
|
google.protobuf.Timestamp created_ts = 2;
|
|
string filename = 3;
|
|
string external_link = 4;
|
|
string type = 5;
|
|
int64 size = 6;
|
|
optional int32 related_memo_id = 7;
|
|
}
|
|
|
|
message ListResourcesRequest {}
|
|
|
|
message ListResourcesResponse {
|
|
repeated Resource resources = 1;
|
|
}
|