Get a revision's contents

get/lists/{listId}/revisions/contents

Returns a collection of the contents of one or more revisions of a list.

If the application/vnd.sas.listdata.dataset.comparison+json media type is used, more than one revision can be specified by using 'revision' as the query parameter. The response is a comparison of these revisions' contents.

Request Samples

Response Samples

1{
2 "name": "listContents",
3 "version": 2,
4 "accept": "application/json",
5 "start": 0,
6 "limit": 10,
7 "count": 2,
8 "items": [
9 {
10 "x": "1",
11 "y": "1"
12 },
13 {
14 "x": "2",
15 "y": "2"
16 }
17 ],
18 "links": [
19 {
20 "href": "...",
21 "method": "...",
22 "rel": "...",
23 "uri": "..."
24 }
25 ]
26}

Path Parameters

listId
string
true

A universally unique identifier for a list.

Query Parameters

limit
integer
false

The maximum number of items to return. The default value is '20'.

revision
number
false

The number of the revision of a list.

start
integer
false

A zero-based offset of the first item to return. The default value is '0'.

diffs
boolean
true

An indicator for whether to highlight only the differences.

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid.

Schema
403Forbidden

The user did not have the necessary permissions.

Schema
404Not Found

No item exists at the requested path.

Schema
500Internal Server Error

The request could not be fulfilled because of an unexpected server error.

Schema