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

Commit

Permalink
fix: add http option.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeNinjaEvan committed Apr 27, 2018
1 parent 5d93c0c commit 884b666
Showing 1 changed file with 23 additions and 30 deletions.
53 changes: 23 additions & 30 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -169,31 +169,31 @@ service Wallet {
}
rpc GetBlockById (BytesMessage) returns (Block) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/wallet/getblockbyid"
body: "*"
};
}
rpc GetBlockByLimitNext (BlockLimit) returns (BlockList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/wallet/getblockbylimitnext"
body: "*"
};
}
rpc GetBlockByLatestNum (NumberMessage) returns (BlockList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/wallet/getblockbylatestnum"
body: "*"
};
}
rpc GetTransactionById (BytesMessage) returns (Transaction) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/wallet/gettransactionbyid"
body: "*"
};
}
rpc GetTransactionByLimitPrev (TransactionLimit) returns (TransactionList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/wallet/gettransactionbylimitprev"
body: "*"
};
}
Expand All @@ -204,95 +204,88 @@ service WalletSolidity {

rpc GetAccount (Account) returns (Account) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/getaccount"
body: "*"
};
};

rpc ListAccounts (EmptyMessage) returns (AccountList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/listaccounts"
body: "*"
};
};

rpc ListWitnesses (EmptyMessage) returns (WitnessList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/listwitnesses"
body: "*"
};
};

rpc ListNodes (EmptyMessage) returns (NodeList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
body: "*"
};
}
rpc GetAssetIssueList (EmptyMessage) returns (AssetIssueList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/getassetissuelist"
body: "*"
};
}
rpc GetAssetIssueListByTimestamp (NumberMessage) returns (AssetIssueList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/getassetissuelistbytimestamp"
body: "*"
};
}
rpc GetAssetIssueByAccount (Account) returns (AssetIssueList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/getassetissuebyaccount"
body: "*"
};
}
rpc GetAssetIssueByName (BytesMessage) returns (AssetIssueContract) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/getassetissuebyname"
body: "*"
};
}
rpc GetNowBlock (EmptyMessage) returns (Block) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/getnowblock"
body: "*"
};
}
rpc GetBlockByNum (NumberMessage) returns (Block) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/getblockbynum"
body: "*"
};
}
//get transaction
rpc TotalTransaction (EmptyMessage) returns (NumberMessage) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/totaltransaction"
body: "*"
};
}
rpc getTransactionById (BytesMessage) returns (Transaction) {
rpc GetTransactionById (BytesMessage) returns (Transaction) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/gettransactionbyid"
body: "*"
};
}
rpc getTransactionsByTimestamp (TimeMessage) returns (TransactionList) {
rpc GetTransactionsByTimestamp (TimeMessage) returns (TransactionList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/gettransactionsbytimestamp"
body: "*"
};
}
rpc getTransactionsFromThis (Account) returns (TransactionList) {
rpc GetTransactionsFromThis (Account) returns (TransactionList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/gettransactionsfromthis"
body: "*"
};
}
rpc getTransactionsToThis (Account) returns (TransactionList) {
rpc GetTransactionsToThis (Account) returns (TransactionList) {
option (google.api.http) = {
post: "/wallet/totaltransaction"
post: "/walletsolidity/gettransactionstothis"
body: "*"
};
}
Expand Down

0 comments on commit 884b666

Please sign in to comment.