HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: WikiPageVersion

Location: n/a

Formats: XML, JSON

Returns a wiki page version by id.

Params

No params available

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/_id.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-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>

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/_id.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