diff --git a/src/lib/api/services/AnalyticsService.proto b/src/lib/api/services/AnalyticsService.proto new file mode 100644 index 000000000..240a806ca --- /dev/null +++ b/src/lib/api/services/AnalyticsService.proto @@ -0,0 +1,28 @@ +syntax="proto3"; +package bts.api.analytics; +option csharp_namespace="bts.api.analytics"; +import "lib/api/apioptions.proto"; +import "lib/api/apicore.proto"; + +message VolSurfaceEntry{ + int32 vs_id = 10; + string vs_name = 20; + bytes volsurface = 30; +} + +message AnalyticsServiceCreateResponse { + bool ok = 1; + int32 new_id = 2; +} + +message IntWrapper{ + int32 data = 1; +} + +service AnalyticsService { + option (bts.api.service_description) = "Provides VolSurface creations and saves"; + rpc get_new_volsurface_id(bts.api.VoidMessage) returns (AnalyticsServiceCreateResponse); + rpc save_volsurface(VolSurfaceEntry) returns (bts.api.ResultMessage); + rpc delete_volsurface(IntWrapper) returns (bts.api.ResultMessage); + rpc clean_up(IntWrapper) returns (bts.api.VoidMessage); +} \ No newline at end of file