Content

/content/createFile

Creates a file model

Example Response:

{
    "result": "Success",
    "msg": 0
}

/content/createNavMenu

Creates a nav menu model

Example Response:

{
    "result": "Success",
    "msg": 0
}

/content/deleteFile

deletes a file model by ID

Example Response:

{
    "result": "Success",
    "msg": 0
}

/content/listFiles

Lists file content types.

Example Response:

[
    {
        "id": 1,
        "title": "HexTileAlt",
        "description": "",
        "slug": "hextilealt",
        "restrict_group_access": 0,
        "created_at": "2017-09-12 16:11:10",
        "updated_at": "2017-09-12 16:11:10"
    },
    {
        "id": 2,
        "title": "Logo 196",
        "description": "",
        "slug": "logo-196",
        "restrict_group_access": 0,
        "created_at": "2017-12-15 17:15:07",
        "updated_at": "2017-12-15 17:15:07"
    }
]

/content/listNavMenus

Lists nav menu links.

Example Response:

[
    {
        "id": 1,
        "parent_id": null,
        "title": "Main Menu",
        "description": "The main menu items",
        "url": null,
        "enabled": 1,
        "parameters": null,
        "query_string": null,
        "is_external": 0,
        "link_target": "_self",
        "created_at": {
            "date": "2017-10-08 14:51:28.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "updated_at": {
            "date": "2018-03-08 19:41:42.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "link_type": "custom_url",
        "notice_id": null,
        "restrict_group_access": 0
    },
    {
        "id": 2,
        "parent_id": 1,
        "title": "Home",
        "description": "Website Home Page",
        "url": "home",
        "enabled": 1,
        "parameters": null,
        "query_string": null,
        "is_external": 0,
        "link_target": "_self",
        "created_at": {
            "date": "2017-10-08 14:51:28.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "updated_at": {
            "date": "2018-01-16 15:24:38.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "link_type": "custom_url",
        "notice_id": null,
        "restrict_group_access": 0
    }
]