The upcoming API describes REST based commands for modifying knarly pages.
Creating a new page.
POST /parent-pageid HTTP/1.1
Content-Type: application/json
Cookie: session_id
{
title : "Page Title",
content : "Html page content",
type : "category",
}
Update an existing page.
This will change the fields marked, other field which are not described will be left unchanged
PUT /pageid HTTP/1.1
Content-Type: application/json
Cookie: session_id
{
title : "Page Title",
content : "Html page content",
type : "category"
}
Delete a page
DELETE /pageid HTTP/1.1 Cookie: session_id
Uploading a File
POST /parent-pageid HTTP/1.1 Content-Type: multipart/form-data Cookie: session_id X-File-Size: byte-length X-File-Type: mime X-File-Name: name BINARY FILE DATA
Getting information about a resource
GET /!pageid HTTP/1.1
Cookie: session_id
Available attributes
| Field | Values | Restrictions |
|---|---|---|
| title | string(60) | normal |
| description | string(255) | normal |
| content | string | normal |
| type | string | normal |