blob: 1023f1a98c6d959a386cd2b02a777a512beee451 [file] [log] [blame]
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -05001syntax = "proto3";
2
3package schema;
4
5import "google/api/annotations.proto";
6import "google/protobuf/empty.proto";
7
8// Contains the name and content of a *.proto file
9message ProtoFile {
10 string file_name = 1; // name of proto file
11 string proto = 2; // content of proto file
12 bytes descriptor = 3; // compiled descriptor for proto (zlib compressed)
13}
14
15// Proto files and compiled descriptors for this interface
16message Schemas {
17
18 // Proto files
19 repeated ProtoFile protos = 1;
20
21 // Proto file name from which swagger.json shall be generated
22 string swagger_from = 2;
23
Khen Nursimulue0d53f82016-12-14 11:05:44 -080024 // Proto file name from which yang schemas shall be generated
25 string yang_from = 3;
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -050026}
27
28// Schema services
29service SchemaService {
30
31 // Return active grpc schemas
32 rpc GetSchema(google.protobuf.Empty) returns (Schemas) {
33 option (google.api.http) = {
34 get: "/schema"
35 };
36 }
37
38}