schnutibox/api/proto/v1/schnutibox.proto

23 lines
441 B
Protocol Buffer
Raw Normal View History

2021-05-05 08:32:35 +02:00
syntax = "proto3";
package schnutibox.v1;
2021-05-05 08:32:35 +02:00
option go_package = "go.xsfx.dev/schnutibox/pkg/api/v1";
import "google/api/annotations.proto";
2021-05-05 08:32:35 +02:00
service IdentifierService {
rpc Identify (IdentifyRequest) returns (IdentifyResponse) {
option (google.api.http) = {
post: "/v1/identify"
body: "*"
};
}
2021-05-05 08:32:35 +02:00
}
message IdentifyRequest {
string id = 1;
}
message IdentifyResponse {
2021-05-05 08:32:35 +02:00
string name = 1;
repeated string uris = 2;
2021-05-05 08:32:35 +02:00
}