Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that plugin API paths will be prefixed with the plugin name, as with web pages. ie: /registry/some_plugin/controller/action/id.

Note

Controllers in mapResources() must include the plugin.

Router::mapResources(array(
  'PluginModel.plugin_model_widgets'
));

Filtering Index Views

Most REST API "View" calls can be filtered somehow, such as view all items by CO or CO Person. Plugins may wish to filter by a Plugin-specific data element. As of Registry v3.3.0, this is possible by declaring $permittedApiFilters in the appropriate Model file. Note this is the Model associated with the desired REST API (eg: Model/MyOtherModel.php), which is not necessarily the primary Plugin Model (Model/MyPlugin.php).

...