qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.11k stars 66 forks source link

refactor(lib, params): allow using url queries to add listing parameters #1994

Closed ramfox closed 2 years ago

ramfox commented 2 years ago

All endpoints that use listing can now give pagination parameters in the url:

try it using our json post endpoints:

curl -X 'POST' localhost:2503/list?Limit=5

sugar endpoints: curl 'localhost:2503/ds/get/username/name?Limit=5&Offset=5


note to self: Before merging, squash all commits and use "breaking changes" commit notation

ramfox commented 2 years ago

Looks like the only breaking changes are on CLI, not API, so we are good to merge without disrupting frontend work!

dustmop commented 2 years ago

LGTM, approved!