GET /v1/spaces/:space_id/wiki_pages/:id
HTTP Verb: GET
Available statuses: 200 OK, 404 Not Found
Object: WikiPage
Location: n/a
Formats: XML, JSON
Returns a wiki page by id.
Params
Not available
Examples
Request XML, using cURL utility:
curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/wiki_pages/_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>
<contents>Page contents</contents>
<status type="integer">1</status>
<change-comment nil="true">
</change-comment>
<page-name>Page_Name</page-name>
<wiki-format type="integer">3</wiki-format>
<created-at type="datetime">2012-12-05T06:07:57Z</created-at>
<parent-id>deSYH2o5Cr4Qc75bfBjDYC</parent-id>
<position type="integer">1</position>
<updated-at type="datetime">2012-12-05T08:44:36Z</updated-at>
<user-id>cpDo7CoOOr4Orf5bfBjDYC</user-id>
<id>aDsOUopQir4Psa5bfBjDYC</id>
<space-id>cVXMqIoOOr4Orf5bfBjDYC</space-id>
<version type="integer">1</version>
</wiki-page>
Request JSON, using cURL utility:
curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/wiki_pages/_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
...
{
"contents": "Page contents",
"status": 1,
"change_comment": null,
"page_name": "Page_Name",
"wiki_format": 3,
"created_at": "2012-12-04T22:07:57-08:00",
"parent_id": "deSYH2o5Cr4Qc75bfBjDYC",
"position": 1,
"updated_at": "2012-12-05T00:44:36-08:00",
"user_id": "cpDo7CoOOr4Orf5bfBjDYC",
"id": "aDsOUopQir4Psa5bfBjDYC",
"space_id": "cVXMqIoOOr4Orf5bfBjDYC",
"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 object fields reference
PDF download avaialable, will result a binary response:
Request PDF, using cURL utility:
curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/wiki_pages/_id.pdf
Response:
HTTP/1.1 200 OK
Date: Fri, 07 Sep 2012 13:12:30 GMT
Content-Type: application/pdf
Connection: close
Content-Disposition: inline; filename="_page_name.pdf"
Content-Transfer-Encoding: binary
Status: 200 OK
...
[ binary content ]