From 6f5401d94522aae58c74be3c2bdff60645acc5ed Mon Sep 17 00:00:00 2001 From: "anjali.agarwal" Date: Tue, 27 Jun 2023 13:53:08 +0530 Subject: [PATCH] feat(assets): add support for api as an asset for http and grpc. Related to : https://github.com/goto/proton/issues/33 --- gotocompany/assets/v1beta2/api.proto | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 gotocompany/assets/v1beta2/api.proto diff --git a/gotocompany/assets/v1beta2/api.proto b/gotocompany/assets/v1beta2/api.proto new file mode 100644 index 00000000..bd2a2ddd --- /dev/null +++ b/gotocompany/assets/v1beta2/api.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package gotocompany.assets.v1beta2; + +import "google/protobuf/struct.proto"; + +option go_package = "github.com/goto/proton/assets/v1beta2;assetsv1beta2"; +option java_outer_classname = "APIProto"; +option java_package = "com.gotocompany.assets"; + +// API is resource that represents a logical group of protocol interfaces like http, grpc etc +message API { + + // The data format like json, proto etc. + string data_format = 1; + + // The server where api is hosted. + string host = 2; + + // The calling function like GET/PUT etc for http or the method name for grpc. + string function = 3; + + // The port where api is hosted. + string port = 4; + + // List of attributes the model has. + google.protobuf.Struct attributes = 5; +}