Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R4R: Add pagination params for lcd validators query #1339

Merged
merged 3 commits into from
Mar 5, 2019

Conversation

chengwenxi
Copy link
Contributor

@chengwenxi chengwenxi commented Mar 4, 2019

Closes: #1330

@chengwenxi
Copy link
Contributor Author

Maybe we should add pagination for all list query.

@@ -68,7 +68,7 @@ func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Co

// Get all validators
r.HandleFunc(
"/stake/validators",
"/stake/validators/{page}/{size}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the page and pagesize out of the URL. They should be the params instead of the restful URL.

wukongcheng
wukongcheng previously approved these changes Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants