-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoability.proto
More file actions
36 lines (30 loc) · 916 Bytes
/
doability.proto
File metadata and controls
36 lines (30 loc) · 916 Bytes
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
syntax = "proto3";
import "standard_curriculum.proto";
import "google/protobuf/empty.proto";
package modul_graph;
enum DoabilityCode {
/**
Code specifying how doable a standard curriculum is
*/
DOABLE = 0; // Everything is fine
WARNING = 1; // Everything is fine, but there are some warnings
NOT_DOABLE = 2; // Not doable
}
message DoabilityResponse {
DoabilityCode code = 1;
optional string message = 2; // optional message from the server
}
service StandardCurriculumService {
/**
Get a singular standard curriculum by name
*/
rpc GetStandardCurriculum(StandardCurriculumRequest) returns (StandardCurriculum) {}
/**
Get all standard curriculums
*/
rpc GetStandardCurriculums(google.protobuf.Empty) returns (stream StandardCurriculum) {}
/**
Request doability for a standard curriculum
*/
rpc GetDoability(StandardCurriculumRequest) returns (DoabilityResponse) {}
}