HTTP Verb: GET

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

Object: WikiPage

Location: n/a

Formats: XML, JSON

Returns a paginated list of wiki pages. Pages are default to 25 wiki pages.

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 pages fetched per one page, default is 25.

Examples

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/wiki_pages.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-pages type="array">
  <wiki-page>
    <change-comment nil="true"></change-comment>
    <status type="integer">1</status>
    <contents>Page contents</contents>
    <created-at type="datetime">2012-12-01T03:16:20-06:00</created-at>
    <wiki-format type="integer">3</wiki-format>
    <page-name>Page_Name</page-name>
    <parent-id nil="true"></parent-id>
    <updated-at type="datetime">2012-12-05T00:18:32-06:00</updated-at>
    <position type="integer">0</position>
    <user-id>cQXjiAeyyr4Aa1aboPmlRw</user-id>
    <space-id>cVXMqIoOOr4Orf5bfBjDYC</space-id>
    <id>deSYH2o5Cr4Qc75bfBjDYC</id>
    <version type="integer">2</version>
  </wiki-page>
  ...
</wiki-pages>

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/:space_id/wiki_pages.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,
    "status": 1,
    "contents": "Page contents",
    "created_at": "2012-12-01T09:16:20Z",
    "wiki_format": 3,
    "page_name": "Page_Name",
    "parent_id": null,
    "updated_at": "2012-12-05T06:18:32Z",
    "position": 0,
    "user_id": "cQXjiAeyyr4Aa1aboPmlRw",
    "space_id": "cVXMqIoOOr4Orf5bfBjDYC",
    "id": "deSYH2o5Cr4Qc75bfBjDYC",
    "version": 2
  },
  ...
]

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

Description for each field: wiki page object fields reference