Skip to content

Commit

Permalink
improve rest url
Browse files Browse the repository at this point in the history
  • Loading branch information
keithsue committed Jan 20, 2025
1 parent 2695d06 commit 07faa2c
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 85 deletions.
46 changes: 23 additions & 23 deletions api/side/incentive/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/static/openapi.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proto/side/incentive/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ service Query {
}
// Rewards queries the rewards of the given address.
rpc Rewards(QueryRewardsRequest) returns (QueryRewardsResponse) {
option (google.api.http).get = "/side/incentive/rewards/{address}";
option (google.api.http).get = "/side/incentive/rewards";
}
// RewardStats queries total reward statistics.
rpc RewardStats(QueryRewardStatsRequest) returns (QueryRewardStatsResponse) {
Expand Down
57 changes: 28 additions & 29 deletions x/incentive/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 13 additions & 31 deletions x/incentive/types/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 07faa2c

Please sign in to comment.