hubermedia documentation 2015 html
Paging: get 3rd page with 5 items per page
Task

Get top objects from all type limited to 5 objects per page; Get 3rd page.        

Solution
http://meta.et4.de/rest.ashx/search/?experience=demo-dahoam&type=All&limit=5&offset=10
Description

Used parameters:

Parameter Value Description
experience demo-dahoam The experience specifies the name of the project data pool to be used.  (obligatory) Use this experience to get data from eT4.META-search.
type All Used to specify the main content type/topic to search. Hotel, Event, Gastro, Tour, POI, City, Area, Package, Article or Web. Set type to All.
limit 5
Description
The number of returned records is limited to the specified value.

The limit parameter should be used for each query, as far as it is not a complete export, so that optimal performance is achieved.

Use the offset - parameter in order to fetch the next results.

Type
Syntax
&limit={Integer}
Samples
 Limit resultset to 5.
offset 10
Description
The result list starts from the defined offset value.

 

The offset parameter is always in conjunction with the limit parameter.

Thus, it is possible to gradually pick up the results.

This is useful for performance reasons for each implementation, in which the results are displayed page by page.

Type
Syntax
&offset={Integer}
Samples
 Start at item 10 and get 3rd page.
See Also

params

querylanguage

 

 


© hubermedia 2018 Privacy Statement Imprint