Skip to content

R4R: Add pagination params for lcd validators query#1339

Merged
wukongcheng merged 3 commits intoirisnet:developfrom
chengwenxi:pagination
Mar 5, 2019
Merged

R4R: Add pagination params for lcd validators query#1339
wukongcheng merged 3 commits intoirisnet:developfrom
chengwenxi:pagination

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.

// 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