df/bff/proto/rpc_get_person.proto
itsscb bfdbbe7e04 ft/adds endpoints
- get_person
- list_persons
- delete_payment
- delete_person (TODO: Add removal of returnsLog to TX)
2023-10-09 03:34:10 +02:00

34 lines
822 B
Protocol Buffer

syntax = "proto3";
package pb;
import "protoc-gen-openapiv2/options/annotations.proto";
import "person.proto";
option go_package = "github.com/itsscb/df/pb";
message GetPersonRequest {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "GetPerson";
description: "Get an Person by ID";
required: [
"id"
];
};
example: "{\"id\": \"1\" }";
};
int64 id = 1;
}
message GetPersonResponse {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "GetPerson Response";
description: "Returns the Person";
};
};
Person person = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
}];
}