34 lines
518 B
Protocol Buffer
34 lines
518 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package user;
|
||
|
|
||
|
service UsersService {
|
||
|
rpc FindOneByUuid(UserByUuid) returns (User);
|
||
|
rpc FindAll(UserFilter) returns (Users);
|
||
|
rpc Create(CreateUser) returns (User);
|
||
|
}
|
||
|
|
||
|
message UserByUuid {
|
||
|
string uuid = 1;
|
||
|
}
|
||
|
|
||
|
message User {
|
||
|
string uuid = 1;
|
||
|
string firstName = 2;
|
||
|
string lastName = 3;
|
||
|
string email = 4;
|
||
|
}
|
||
|
|
||
|
message CreateUser {
|
||
|
string uuid = 1;
|
||
|
string firstName = 2;
|
||
|
string lastName = 3;
|
||
|
string email = 4;
|
||
|
}
|
||
|
|
||
|
message UserFilter {}
|
||
|
|
||
|
message Users {
|
||
|
repeated User users = 1;
|
||
|
}
|