Skip to content

Commit

Permalink
Menu: Add new XML-RPC methods
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed May 20, 2024
1 parent bc85ca3 commit c057711
Show file tree
Hide file tree
Showing 22 changed files with 1,113 additions and 15 deletions.
21 changes: 21 additions & 0 deletions fixtures/copy-menu-req.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>copy_menu</methodName>
<params>
<param>
<value>
<string>menu::testmenu</string>
</value>
</param>
<param>
<value>
<string>testmenu2</string>
</value>
</param>
<param>
<value>
<string>securetoken99</string>
</value>
</param>
</params>
</methodCall>
10 changes: 10 additions & 0 deletions fixtures/copy-menu-res.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value>
<boolean>1</boolean>
</value>
</param>
</params>
</methodResponse>
28 changes: 28 additions & 0 deletions fixtures/find-menu-names-req.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>find_menu</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>name</name>
<value>
<string>testmenu</string>
</value>
</member>
</struct>
</value>
</param>
<param>
<value>
<boolean>0</boolean>
</value>
</param>
<param>
<value>
<string>securetoken99</string>
</value>
</param>
</params>
</methodCall>
16 changes: 16 additions & 0 deletions fixtures/find-menu-names-res.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<string>testmenu</string>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
28 changes: 28 additions & 0 deletions fixtures/find-menu-req.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>find_menu</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>name</name>
<value>
<string>testmenu</string>
</value>
</member>
</struct>
</value>
</param>
<param>
<value>
<boolean>1</boolean>
</value>
</param>
<param>
<value>
<string>securetoken99</string>
</value>
</param>
</params>
</methodCall>
151 changes: 151 additions & 0 deletions fixtures/find-menu-res.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>parent</name>
<value>
<string></string>
</value>
</member>
<member>
<name>depth</name>
<value>
<int>0</int>
</value>
</member>
<member>
<name>children</name>
<value>
<array>
<data>
</data>
</array>
</value>
</member>
<member>
<name>ctime</name>
<value>
<double>1716132890.5260634</double>
</value>
</member>
<member>
<name>mtime</name>
<value>
<double>1716132890.5260634</double>
</value>
</member>
<member>
<name>uid</name>
<value>
<string>ecfb2f9cb717495988bee1d9d1c79504</string>
</value>
</member>
<member>
<name>name</name>
<value>
<string>testmenu</string>
</value>
</member>
<member>
<name>comment</name>
<value>
<string></string>
</value>
</member>
<member>
<name>kernel_options</name>
<value>
<struct>
</struct>
</value>
</member>
<member>
<name>kernel_options_post</name>
<value>
<struct>
</struct>
</value>
</member>
<member>
<name>autoinstall_meta</name>
<value>
<struct>
</struct>
</value>
</member>
<member>
<name>fetchable_files</name>
<value>
<struct>
</struct>
</value>
</member>
<member>
<name>boot_files</name>
<value>
<struct>
</struct>
</value>
</member>
<member>
<name>template_files</name>
<value>
<struct>
</struct>
</value>
</member>
<member>
<name>owners</name>
<value>
<string>&lt;&lt;inherit&gt;&gt;</string>
</value>
</member>
<member>
<name>mgmt_classes</name>
<value>
<array>
<data>
</data>
</array>
</value>
</member>
<member>
<name>mgmt_parameters</name>
<value>
<struct>
</struct>
</value>
</member>
<member>
<name>is_subobject</name>
<value>
<boolean>0</boolean>
</value>
</member>
<member>
<name>display_name</name>
<value>
<string></string>
</value>
</member>
<member>
<name>ks_meta</name>
<value>
<struct>
</struct>
</value>
</member>
</struct>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
11 changes: 11 additions & 0 deletions fixtures/get-item-names-menu-req.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>get_item_names</methodName>
<params>
<param>
<value>
<string>menu</string>
</value>
</param>
</params>
</methodCall>
16 changes: 16 additions & 0 deletions fixtures/get-item-names-menu-res.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<string>testmenu</string>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
16 changes: 16 additions & 0 deletions fixtures/get-menu-handle-req.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>get_menu_handle</methodName>
<params>
<param>
<value>
<string>testmenu</string>
</value>
</param>
<param>
<value>
<string>securetoken99</string>
</value>
</param>
</params>
</methodCall>
10 changes: 10 additions & 0 deletions fixtures/get-menu-handle-res.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value>
<string>menu::testmenu</string>
</value>
</param>
</params>
</methodResponse>
16 changes: 16 additions & 0 deletions fixtures/get-menu-req.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>get_menu</methodName>
<params>
<param>
<value>
<string>testmenu</string>
</value>
</param>
<param>
<value>
<string>securetoken99</string>
</value>
</param>
</params>
</methodCall>
Loading

0 comments on commit c057711

Please sign in to comment.