1 of 1 found this page helpful

Retrieve Page Subpages

    Description of the code sample

    The following code example retrieves the subpages for the home page:

    Sample Code

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

    Sample Response from executing Code

    Sample response indicating that there is one subpage:

    <subpages href="http://deki-hayes/@api/deki/pages/29/subpages">
        <page.subpage id="31" href="http://deki-hayes/@api/deki/pages/31">
            <title>Page Title</title> 
            <path>Page_Title</path> 
        </page.subpage>
    </subpages>

    Implementation notes 

    Add notes about requirements or config values

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by