Add pagination
Closed this issue · 0 comments
stefandesu commented
Especially relevant to mappings. Return link headers like the GitHub API and jskos-server do (https://developer.github.com/v3/guides/traversing-with-pagination/), but use URL parameters limit
and offset
(instead of GitHub's page
) for navigation.
Example:
https://coli-conc.gbv.de/services/wikidata/mappings/?from=http:%2F%2Fdewey.info%2Fclass%2F612.11%2Fe23%2F&to=http:%2F%2Fwww.wikidata.org%2Fentity%2FQ7873&direction=both&mode=or&limit=2 should return only 2 results, and the other two when appending &offset=2
.