Menu represents a menu item with possible subitems.

GET
Retrieve menu items by conditions

_cnd[limit]
array 
Sets the offset (first item) and the limit (second item)
_cnd[orderBy]
array 
Sets sorting order field
default Success <XLite\Module\CDev\SimpleCMS\Model\Menu>[] array
Sample response
[{"id":83,"link":"example","lpos":86,"rpos":22,"depth":79,"quickFlags":{"id":"integer","submenus_count_all":"integer","submenus_count_enabled":"integer","menu":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"},"children":["<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"],"parent":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>","type":"example","position":8,"enabled":false,"visibleFor":"example"}]

GET
Retrieve menu item by id

id
integer Required
Id value of the Menu object
default Success <XLite\Module\CDev\SimpleCMS\Model\Menu>
Sample response
{"id":83,"link":"example","lpos":86,"rpos":22,"depth":79,"quickFlags":{"id":"integer","submenus_count_all":"integer","submenus_count_enabled":"integer","menu":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"},"children":["<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"],"parent":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>","type":"example","position":8,"enabled":false,"visibleFor":"example"}
id
integer
Unique ID
link
string
Link
lpos
integer
Node left value
rpos
integer
Node right value
depth
integer
Menu "depth" in the tree
quickFlags
children
[] array
Child menus
parent
type
string
Type
position
integer
Position
enabled
boolean
Is menu enabled or not
visibleFor
string
Visible for anonymous only (A), logged in only (L), for all visitors (AL)

PUT
Update menu item by id

id
integer Required
Id value of the Menu object
<XLite\Module\CDev\SimpleCMS\Model\Menu>
id
integer
Unique ID
link
string
Link
lpos
integer
Node left value
rpos
integer
Node right value
depth
integer
Menu "depth" in the tree
quickFlags
children
[] array
Child menus
parent
type
string
Type
position
integer
Position
enabled
boolean
Is menu enabled or not
visibleFor
string
Visible for anonymous only (A), logged in only (L), for all visitors (AL)
default Success <XLite\Module\CDev\SimpleCMS\Model\Menu>
Sample response
{"id":83,"link":"example","lpos":86,"rpos":22,"depth":79,"quickFlags":{"id":"integer","submenus_count_all":"integer","submenus_count_enabled":"integer","menu":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"},"children":["<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"],"parent":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>","type":"example","position":8,"enabled":false,"visibleFor":"example"}
id
integer
Unique ID
link
string
Link
lpos
integer
Node left value
rpos
integer
Node right value
depth
integer
Menu "depth" in the tree
quickFlags
children
[] array
Child menus
parent
type
string
Type
position
integer
Position
enabled
boolean
Is menu enabled or not
visibleFor
string
Visible for anonymous only (A), logged in only (L), for all visitors (AL)

DELETE
Delete menu item by id

id
integer Required
Id value of the Menu object
default Success <XLite\Module\CDev\SimpleCMS\Model\Menu>
Sample response
{"id":83,"link":"example","lpos":86,"rpos":22,"depth":79,"quickFlags":{"id":"integer","submenus_count_all":"integer","submenus_count_enabled":"integer","menu":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"},"children":["<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"],"parent":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>","type":"example","position":8,"enabled":false,"visibleFor":"example"}
id
integer
Unique ID
link
string
Link
lpos
integer
Node left value
rpos
integer
Node right value
depth
integer
Menu "depth" in the tree
quickFlags
children
[] array
Child menus
parent
type
string
Type
position
integer
Position
enabled
boolean
Is menu enabled or not
visibleFor
string
Visible for anonymous only (A), logged in only (L), for all visitors (AL)

POST

<XLite\Module\CDev\SimpleCMS\Model\Menu>
id
integer
Unique ID
link
string
Link
lpos
integer
Node left value
rpos
integer
Node right value
depth
integer
Menu "depth" in the tree
quickFlags
children
[] array
Child menus
parent
type
string
Type
position
integer
Position
enabled
boolean
Is menu enabled or not
visibleFor
string
Visible for anonymous only (A), logged in only (L), for all visitors (AL)
default Success <XLite\Module\CDev\SimpleCMS\Model\Menu>
Sample response
{"id":83,"link":"example","lpos":86,"rpos":22,"depth":79,"quickFlags":{"id":"integer","submenus_count_all":"integer","submenus_count_enabled":"integer","menu":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"},"children":["<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>"],"parent":"<XLite\\Module\\CDev\\SimpleCMS\\Model\\Menu>","type":"example","position":8,"enabled":false,"visibleFor":"example"}
id
integer
Unique ID
link
string
Link
lpos
integer
Node left value
rpos
integer
Node right value
depth
integer
Menu "depth" in the tree
quickFlags
children
[] array
Child menus
parent
type
string
Type
position
integer
Position
enabled
boolean
Is menu enabled or not
visibleFor
string
Visible for anonymous only (A), logged in only (L), for all visitors (AL)