GET:pages/{pageid}/info

Overview

public. Retrieve page information

Uri Parameters
NameTypeDescription
pageidstringeither an integer page ID, "home", or "=" followed by a double uri-encoded page title
Query Parameters
NameTypeDescription
redirectsint?If zero, do not follow page redirects.
Return Codes
NameValueDescription
BadRequest400Invalid input parameter or request body
Forbidden403Read access to the page is required
NotFound404Requested page could not be found
Ok200The request completed successfully

Message Format

Output:

<page id="{int}" href="{uri}">
    <title>{text}</title> 
    <path>{text}</path> 
</page>

Implementation Notes

The page title is the user-friendly display name of the page. The page path is the full database-encoded page title.

Code Samples

The following code example retrieves page information about the home page:

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("pages", "home", "info").Get();

Sample response:

<page id="29" href="http://deki-hayes/@api/deki/pages/29">
    <title>DekiWiki (Hayes)</title> 
    <path /> 
</page>
Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08