blob: 764f53fdac9cf32e01980fa1da6e59f3ca00b17d [file] [log] [blame]
Zsolt Harasztia9a12dc2016-09-27 13:48:35 -07001syntax = "proto3";
2
3package schema;
4
Zsolt Haraszticba96de2016-11-06 14:04:55 -08005import "google/protobuf/empty.proto";
6
Zsolt Harasztidca6fa12016-11-03 16:56:17 -07007// Contains the name and content of a *.proto file
8message ProtoFile {
9 string file_name = 1; // name of proto file
10 string proto = 2; // content of proto file
11 bytes descriptor = 3; // compiled descriptor for proto (zlib compressed)
12}
Zsolt Harasztia9a12dc2016-09-27 13:48:35 -070013
Zsolt Harasztidca6fa12016-11-03 16:56:17 -070014// Proto files and compiled descriptors for this interface
15message Schemas {
Zsolt Harasztia9a12dc2016-09-27 13:48:35 -070016
Zsolt Harasztidca6fa12016-11-03 16:56:17 -070017 // Proto files
18 repeated ProtoFile protos = 1;
Zsolt Harasztia9a12dc2016-09-27 13:48:35 -070019
Zsolt Haraszti21980762016-11-08 10:57:19 -080020 // Name of proto file to generae swagger.json from
21 string swagger_from = 2;
22
Zsolt Harasztia9a12dc2016-09-27 13:48:35 -070023}
24
Zsolt Harasztia9a12dc2016-09-27 13:48:35 -070025// Schema services
26service SchemaService {
27
Zsolt Harasztidca6fa12016-11-03 16:56:17 -070028 // Return active grpc schemas
Zsolt Haraszticba96de2016-11-06 14:04:55 -080029 rpc GetSchema(google.protobuf.Empty) returns (Schemas) {}
Zsolt Harasztia9a12dc2016-09-27 13:48:35 -070030
31}