Skip to content

Commit 688d805

Browse files
committed
improve rest url
1 parent 22b44e0 commit 688d805

File tree

5 files changed

+66
-85
lines changed

5 files changed

+66
-85
lines changed

api/side/incentive/query.pulsar.go

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/openapi.yml

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

proto/side/incentive/query.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ service Query {
1616
}
1717
// Rewards queries the rewards of the given address.
1818
rpc Rewards(QueryRewardsRequest) returns (QueryRewardsResponse) {
19-
option (google.api.http).get = "/side/incentive/rewards/{address}";
19+
option (google.api.http).get = "/side/incentive/rewards";
2020
}
2121
// RewardStats queries total reward statistics.
2222
rpc RewardStats(QueryRewardStatsRequest) returns (QueryRewardStatsResponse) {

x/incentive/types/query.pb.go

Lines changed: 28 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x/incentive/types/query.pb.gw.go

Lines changed: 13 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)