The struct plugin exposes several methods that can be accessed via the XML-RPC API. You can find the current code in the remote.php
Note: The method names are prefixed with plugin.struct.
, for example plugin.struct.getSchema
getData()
Get the structured data of a given page('schema' ⇒ ( 'fieldlabel' ⇒ 'value', …))
saveData()
Saves data for a given page (creates a new revision)('schema' ⇒ ( 'fieldlabel' ⇒ 'value', …))
getSchema()
Get info about existing schemas columnsgetAggregationData()
Get the data that would be shown in an aggregation['logic'⇒ 'and'|'or', 'condition' ⇒ 'your condition']
Postman example for getAggregationData(), as raw data:
<?xml version="1.0"?> <methodCall> <methodName>plugin.struct.getAggregationData</methodName> <params> <param> <value> <array> <data> <value> <string>myschema</string> </value> </data> </array> <array> <data> <value> <string>colour</string> </value> </data> </array> <array> <data> <value> <struct> <member> <name>logic</name> <value> <string>and</string> </value> </member> <member> <name>condition</name> <value> <string>colour=red</string> </value> </member> </struct> </value> </data> </array> <string>colour</string> </value> </param> </params> </methodCall>