HTTP Verb: GET

Available statuses: 200 OK, 204 No Content, 404 Not Found

Object: WikiPageVersion

Location: n/a

Formats: XML, JSON

Returns a paginated list of wiki page versions. Pages are default to 10 wiki page versions.

Params

Param Description
page Parameter to specify which page to request, see per_page to determine how many items per page.
per_page Specify the number of wiki page versions fetched per one page, default is 10.

Examples

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/wiki_pages/_wiki_page_id/versions.xml

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 07 Sep 2012 13:08:42 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<wiki-page-versions type="array">
  <wiki-page-version>
    <change-comment nil="true"></change-comment>
    <contents>Page contents</contents>
    <wiki-page-id>aDsOUopQir4Psa5bfBjDYC</wiki-page-id>
    <created-at type="datetime">2012-12-05T06:07:57Z</created-at>
    <updated-at type="datetime">2012-12-05T06:07:57Z</updated-at>
    <user-id>cpDo7CoOOr4Orf5bfBjDYC</user-id>
    <id type="integer">102</id>
    <version type="integer">1</version>
  </wiki-page-version>
  ...
</wiki-page-versions>

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/wiki_pages/_wiki_page_id/versions.json

Response:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 07 Sep 2012 13:12:30 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

[
  {
    "change_comment": null,
    "contents": "Page contents",
    "wiki_page_id": "aDsOUopQir4Psa5bfBjDYC",
    "created_at": "2012-12-05T00:07:57-06:00",
    "updated_at": "2012-12-05T00:07:57-06:00",
    "user_id": "cpDo7CoOOr4Orf5bfBjDYC",
    "id": 102,
    "version": 1
  },
  ...
]

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Description for each field: wiki page version object fields reference