Struct Plugin

remote API

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

Methods

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>