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

Add sort_by query param to /signers endpoint #44

Open
zone117x opened this issue Nov 8, 2024 · 0 comments
Open

Add sort_by query param to /signers endpoint #44

zone117x opened this issue Nov 8, 2024 · 0 comments

Comments

@zone117x
Copy link
Member

zone117x commented Nov 8, 2024

It's currently sorted by (weight, stacked_amount). I'll add a slot_index property.

We could also add something like a ?sort_by=weight|slot_index|etc query param.

Originally posted by @zone117x in #40

Something like:

GET /v1/cycle/{n}/signers?
   sort_by={slot_index|weight|last_seen|response_time|accepted_percent|voted_percent}
   &order={asc|desc}
@github-project-automation github-project-automation bot moved this to 🆕 New in API Board Nov 8, 2024
@zone117x zone117x moved this from 🆕 New to 📋 Backlog in API Board Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant