-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.proto
58 lines (46 loc) · 892 Bytes
/
service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
syntax = "proto3";
package finmgr;
message BanksResponse {
repeated Bank banks = 1;
}
message Bank {
string id = 1;
string blz = 2;
bool updating = 4;
repeated Account accounts = 5;
}
message AddBankRequest {
string id = 1;
string pin = 2;
string blz = 3;
}
message RefreshRequest {
string id = 1;
}
message Account {
string name = 1;
string id = 2;
}
message User {
string email = 1;
string logout_url = 2;
}
message Subscription {
string endpoint = 1;
bytes auth = 2;
bytes p256dh = 3;
}
message Empty {
string dummy = 1;
}
service AccountService {
rpc GetBanks(Empty) returns (BanksResponse) {}
rpc AddBank(AddBankRequest) returns (Empty) {}
rpc RefreshBank(RefreshRequest) returns (Empty) {}
}
service UserService {
rpc GetUser(Empty) returns (User) {}
}
service PushService {
rpc PutSubscription(Subscription) returns (Empty) {}
}