Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request grpc-ecosystem#40 from tronprotocol/proxy
Browse files Browse the repository at this point in the history
proxy support GET method
  • Loading branch information
CodeNinjaEvan committed May 8, 2018
2 parents 8f7655a + 200ba66 commit 4e0f34e
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ service Wallet {
option (google.api.http) = {
post: "/wallet/getaccount"
body: "*"
additional_bindings {
get: "/wallet/getaccount"
}
};
};

Expand All @@ -37,9 +40,12 @@ rpc BroadcastTransaction (Transaction) returns (Return) {

rpc ListAccounts (EmptyMessage) returns (AccountList) {
option (google.api.http) = {
post: "/wallet/listaccount"
body: "*"
};
post: "/wallet/listaccount"
body: "*"
additional_bindings {
get: "/wallet/listaccount"
}
};

};

Expand Down Expand Up @@ -68,6 +74,9 @@ rpc BroadcastTransaction (Transaction) returns (Return) {
option (google.api.http) = {
post: "/wallet/listwitnesses"
body: "*"
additional_bindings {
get: "/wallet/listwitnesses"
}
};
};

Expand Down Expand Up @@ -124,12 +133,18 @@ rpc BroadcastTransaction (Transaction) returns (Return) {
option (google.api.http) = {
post: "/wallet/listnodes"
body: "*"
additional_bindings {
get: "/wallet/listnodes"
}
};
}
rpc GetAssetIssueList (EmptyMessage) returns (AssetIssueList) {
option (google.api.http) = {
post: "/wallet/getassetissuelist"
body: "*"
additional_bindings {
get: "/wallet/getassetissuelist"
}
};
}
rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) {
Expand All @@ -148,18 +163,27 @@ rpc BroadcastTransaction (Transaction) returns (Return) {
option (google.api.http) = {
post: "/wallet/getnowblock"
body: "*"
additional_bindings {
get: "/wallet/getnowblock"
}
};
}
rpc GetBlockByNum (NumberMessage) returns (Block) {
option (google.api.http) = {
post: "/wallet/getblockbynum"
body: "*"
additional_bindings {
get: "/wallet/getblockbynum"
}
};
}
rpc TotalTransaction (EmptyMessage) returns (NumberMessage) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
body: "*"
additional_bindings {
get: "/wallet/totaltransaction"
}
};
}
rpc GetBlockById (BytesMessage) returns (Block) {
Expand Down

0 comments on commit 4e0f34e

Please sign in to comment.