Reference

/api/site/children

List all subpages

GET: /api/site/children

Query parameters

Parameter Example Description
limit ?limit=5 Limits the number of returned pages.
offset ?offset=10 Sets a manual offset. Use the page option together with limit for easier pagination.
page ?page=2 Starts the collection at the given page. Only works when the limit is set.
pretty ?pretty=true Pretty prints the result. Only useful for debugging.
select ?select=id,title Defines the fields that will be returned for each page.

Example response

GET: /api/site/children
{
    "code": 200,
    "data": [
        {
            "id": "projects",
            "num": 1,
            "title": "Projects",
            "url": "http://kir.by/projects"
        },
        {
            "id": "blog",
            "num": 2,
            "title": "Blog",
            "url": "http://kir.by/blog"
        },
        {
            "id": "team",
            "num": 3,
            "title": "Team",
            "url": "http://kir.by/team"
        },
        {
            "id": "contact",
            "num": 4,
            "title": "Contact",
            "url": "http://kir.by/contact"
        },
        {
            "id": "error",
            "num": null,
            "title": "Error",
            "url": "http://kir.by/error"
        },
        {
            "id": "home",
            "num": null,
            "title": "Home",
            "url": "http://kir.by"
        },
    ],
    "pagination": {
        "page": 1,
        "total": 6,
        "offset": 0,
        "limit": 100
    },
    "status": "ok",
    "type": "collection"
}