forked from raystack/proton
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(assets): add support for api as an asset for http and grpc. Rela…
…ted to : #33
- Loading branch information
1 parent
5f55bab
commit 6f5401d
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |