+49 69 83008980 service@xqueue.com

Benötigen Sie Hilfe?

Pagination

< Alle Themen
 

Pagination Parameters

Some requests return result pages and therefore expect the following pagination parameters:
page_index Indicates the index of the result page to be returned. The index must be greater or equal to 1.

page_size Indicates the size of the result page. the size must be between 1 (inclusive) and 1000 (inclusive).

Pagination Headers

Each response containing result pages includes the following headers:
X-Pages Indicates the count of available result pages.
X-Items Indicates the total number of result items among all result pages.
Link This header is returned in three versions: URI of the first page of results, URI of the previous page (if the returned page is not the first one) and URI of the next page (if the returned page is not the last one).
Example:

Status: 200 OK
Link: <http://api.maileon.com/1.0/contacts?page_index=11&page_size=10>; rel="next"
Link: <http://api.maileon.com/1.0/contacts?page_index=9&page_size=10>; rel="prev"
Link: <http://api.maileon.com/1.0/contacts?page_index=1&page_size=10>; rel="start"
Content-Type: application/vnd.maileon.api+xml
X-Pages: 33
X-Items: 330
<?xml version="1.0" encoding="UTF-8"?>
...

 

Inhaltsverzeichnis