Closed stefandesu closed 5 years ago
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.
limit
offset
page
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.
&offset=2
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
andoffset
(instead of GitHub'spage
) 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
.