Inhaltsverzeichnis

2.3 OData Paging

Paginate large datasets.

Client Paging

# First 10 records
GET /odata/demo/Customers?$top=10

# Next 10 (Skip 10)
GET /odata/demo/Customers?$top=10&$skip=10

# With total count
GET /odata/demo/Customers?$top=10&$count=true

Server Paging

For large results, the server automatically returns an @odata.nextLink:

{
  "value": [...],
  "@odata.nextLink": "/odata/demo/Customers?$skip=100"
}

Sorting

$orderby=Name              // Ascending
$orderby=Name desc         // Descending
$orderby=Country,Name      // Multiple columns