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

Commit

Permalink
proxy support GET method
Browse files Browse the repository at this point in the history
  • Loading branch information
Yin Shucheng committed May 6, 2018
1 parent 0e65a14 commit 200ba66
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 @@ -35,9 +38,12 @@ service Wallet {

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 @@ -66,6 +72,9 @@ service Wallet {
option (google.api.http) = {
post: "/wallet/listwitnesses"
body: "*"
additional_bindings {
get: "/wallet/listwitnesses"
}
};
};

Expand Down Expand Up @@ -122,12 +131,18 @@ service Wallet {
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 @@ -146,18 +161,27 @@ service Wallet {
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 200ba66

Please sign in to comment.