Updates execution/pagination.md

Auto commit by GitBook Editor
This commit is contained in:
apidesigner
2017-02-24 07:42:12 +00:00
parent 48b0a97b3c
commit e7fa5f230d

View File

@@ -2,11 +2,25 @@
A collection resource **SHOULD** provide the [`first`, `last`, `next` and `prev` link](https://tools.ietf.org/html/rfc5988#section-6.2.2)s for navigation within the collection. A collection resource **SHOULD** provide the [`first`, `last`, `next` and `prev` link](https://tools.ietf.org/html/rfc5988#section-6.2.2)s for navigation within the collection.
#### Example #### Example
Orders collection Collection of Orders using the collection navigation link and `offset` and `limit` query parameters.
```json ```json
{
``` "_links": {
"self": { "href": "/orders?offset=100&limit=10" },
"prev": { "href": "/orders?offset=90&limit=10" },
"next": { "href": "/orders?offset=110&limit=10" },
"first": { "href": "/orders?limit=10" },
"last": { "href": "/orders?offset=900&limit=10" }
},
"_embedded": {
"order": [
{ ... },
{ ... },
...
]
}
}
```