3.3 Feed-level Links
This is followed by a set of Atom links:
<link rel="self" type="application/atom+xml; type=feed" title="Refresh" href="http://www.example.com/sdata/myApp/myContract/-/salesOrders" /> <link rel="first" type="application/atom+xml; type=feed" title="First Page" href="http://www.example.com/sdata/myApp/myContract/-/salesOrders?startIndex=1&count=10" /> <link rel="last" type="application/atom+xml; type=feed" title="Last Page" href="http://www.example.com/sdata/myApp/myContract/-/salesOrders?startIndex=31461&count=10" /> <link rel="next" type="application/atom+xml; type=feed" title="Next Page" href="http://www.example.com/sdata/myApp/myContract/-/salesOrders?startIndex=11&count=10" /> <link rel="http://schemas.sage.com/sdata/link-relations/schema" type="application/xml" title="Schema" href="http://www.example.com/sdata/myApp/myContract/-/salesOrders/$schema?version=5" /> <link rel="http://schemas.sage.com/sdata/link-relations/template" type="application/atom+xml; type=entry" title="Template" href="http://www.example.com/sdata/myApp/myContract/-/salesOrders/$template" /> <link rel="http://schemas.sage.com/sdata/link-relations/post" type="application/atom+xml; type=entry" title="Post" href="http://www.example.com/sdata/myApp/myContract/-/salesOrders" /> <link rel="http://schemas.sage.com/sdata/link-relations/service" type="application/atom+xml; type=feed" title="Service" href="http://www.example.com/sdata/myApp/myContract/-/salesOrders/$service" />
These links are described in the table below:
rel attribute | Media type | Description | Compliance |
---|---|---|---|
self | Atom feed | URL of the current page. | MUST |
first | Atom feed | First page of resource collection. See Query Paging section. | MUST (if paging) |
last | Atom feed | Last page of resource collection. See Query Paging section. | MUST (if paging |
previous | Atom feed | Previous page of resource collection, if not already on first page. See Query Paging section) | MUST (if paging) |
next | Atom feed | Next page of resource collection, if not already on last page. See Query Paging section. | MUST (if paging) |
http://schemas.sage.com/sdata/link-relations/schema | XML (XSD) | Schema describing the resource structure. See Schema URL section. | MUST |
http://schemas.sage.com/sdata/link-relations/template | Atom entry | Template Resource URL. | MUST (if POST allowed) |
http://schemas.sage.com/sdata/link-relations/post | Atom entry | URL to POST resource creation requests. See Create Operation section. | MUST (if POST allowed) |
http://schemas.sage.com/sdata/link-relations/service | Atom feed | Intermediate URL that lists service operations. See Intermediate URLs section. This link should only be present if the resource kind has a $service URL. See Service Operation URL section. | MAY |
http://schemas.sage.com/sdata/link-relations/queries | Atom feed | Intermediate URL that lists named queries. See Intermediate URLs section. This link should only be present if the resource kind has a $queries URL. See Named Query URL section. | MAY |