Site Register

Register View

Of /def/ont/ga/pdm#Site class items

Items in this Register

Paging

Alternate views

Different views of this register are listed at its Alternate views page.

Automated Pagination

To page through these items, use the query string arguments 'page' for the page number and 'per_page' for the number of items per page. HTTP Link headers of first, prev, next & last indicate URIs to the first, a previous, a next and the last page.

Example:

http://sss.pid.geoscience.gov.au/site/ga/?page=7&per_page=50
                    

Assuming 500 items, this request would result in a response with the following Link header:

Link:   <http://sss.pid.geoscience.gov.au/site/ga/?per_page=50> rel="first",
    <http://sss.pid.geoscience.gov.au/site/ga/?per_page=50&page=6> rel="prev",
    <http://sss.pid.geoscience.gov.au/site/ga/?per_page=50&page=8> rel="next",
    <http://sss.pid.geoscience.gov.au/site/ga/?per_page=50&page=10> rel="last"
                    

If you want to page the whole collection, you should start at first and follow the link headers until you reach last or until there is no last link given. You shouldn't try to calculate each page query string argument yourself.