Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

{
pagination: {
        count: 10,
        size: 10,
        prev: "/api/search?query=test&resource_type=file&from=120&size=10",
        last: "/api/search?query=test&resource_type=file&from=160&size=4",
        from: 130,
        next: "/api/search?query=test&resource_type=file&from=140&size=10",
        first: "/api/search?query=test&resource_type=file&from=0&size=10",
        total_size: 164
}, 
results: {
        files: [ ... LIST OF 10 FILES OMITTED ],
        datasets: [ ],
        collections: [ ]
}
}


...with a pagination subobject describing count of current results, page size, total number of results, page starting index (from), and links for first/last/prev/next.

...