Module
Modules and Widgets
Get a list of all modules available to this CMS
Filter by module ID
Filter by module name
Filter by module name, ID, or description
Specifies which field the results are sorted by. Used together with sortDir
Sort direction
The offset to start results from (for pagination)
The number of records to return (page size)
successful operation
GET /api/module HTTP/1.1
Accept: */*
successful operation
{
"moduleId": 1,
"name": "text",
"author": "text",
"description": "text",
"icon": "text",
"type": "text",
"legacyTypes": [
{
"name": null,
"condition": null
}
],
"dataType": "text",
"group": [
"text"
],
"dataCacheKey": "text",
"fallbackData": 1,
"regionSpecific": 1,
"schemaVersion": 1,
"compatibilityClass": "text",
"showIn": "text",
"assignable": 1,
"hasThumbnail": 1,
"thumbnail": "text",
"renderAs": "text",
"class": "text",
"validatorClass": [
"text"
],
"properties": [
{
"id": "text",
"type": "text",
"title": "text",
"helpText": "text",
"default": "text"
}
],
"onInitialize": "text",
"onParseData": "text",
"onDataLoad": "text",
"onRender": "text",
"onVisible": "text",
"sampleData": "text",
"enabled": 1,
"previewEnabled": 1,
"defaultDuration": 1,
"settings": [
{
"id": "text",
"type": "text",
"title": "text",
"helpText": "text",
"default": "text"
}
],
"propertyGroups": [
{
"id": null,
"expanded": null,
"title": null,
"helpText": null
}
],
"requiredElements": [
"text"
],
"isInstalled": true,
"isError": true,
"errors": [
"text"
]
}Get the Module object specified by the provided moduleId
ID of the Module to get
successful operation
Class Module
The ID of this Module
Module Name
Module Author
Description of the Module
An icon to use in the toolbar
The type code for this module
The data type of the data expected to be returned by this modules data provider
The group details for this module
The cache key used when requesting data
Is fallback data allowed for this module? Only applicable for a Data Widget
Is specific to a Layout or can be uploaded to the Library?
The schema version of the module
The compatibility class of the module
A flag indicating whether the module should be excluded from the Layout Editor
A flag indicating whether the module is assignable to a Layout
Does this module have a thumbnail to render?
This is the location to a module's thumbnail
Should be rendered natively by the Player or via the CMS (native|html)
Class Name including namespace
Validator class name including namespace
JavaScript function run when a module is initialised, before data is returned
Data Parser run against each data item applicable when a dataType is present
A load function to run when the widget first fetches data
JavaScript function run when a module is rendered, after data has been returned
JavaScript function run when a module becomes visible
Optional sample data item, only applicable when a dataType is present
A flag indicating whether this module is enabled
A flag indicating whether the Layout designer should render a preview of this module
The default duration for Widgets of this Module when the user has not set a duration.
An array of required elements
$isInstalled Is this module installed?
$isError Does this module have any errors?
$errors An array of errors this module has.
GET /api/module/{moduleId} HTTP/1.1
Accept: */*
successful operation
{
"moduleId": 1,
"name": "text",
"author": "text",
"description": "text",
"icon": "text",
"type": "text",
"legacyTypes": [
{
"name": null,
"condition": null
}
],
"dataType": "text",
"group": [
"text"
],
"dataCacheKey": "text",
"fallbackData": 1,
"regionSpecific": 1,
"schemaVersion": 1,
"compatibilityClass": "text",
"showIn": "text",
"assignable": 1,
"hasThumbnail": 1,
"thumbnail": "text",
"renderAs": "text",
"class": "text",
"validatorClass": [
"text"
],
"properties": [
{
"id": "text",
"type": "text",
"title": "text",
"helpText": "text",
"default": "text"
}
],
"onInitialize": "text",
"onParseData": "text",
"onDataLoad": "text",
"onRender": "text",
"onVisible": "text",
"sampleData": "text",
"enabled": 1,
"previewEnabled": 1,
"defaultDuration": 1,
"settings": [
{
"id": "text",
"type": "text",
"title": "text",
"helpText": "text",
"default": "text"
}
],
"propertyGroups": [
{
"id": null,
"expanded": null,
"title": null,
"helpText": null
}
],
"requiredElements": [
"text"
],
"isInstalled": true,
"isError": true,
"errors": [
"text"
]
}Get a module properties which are needed to for the editWidget call
The ModuleId
successful operation
A Property
ID, saved as a widget option
Type, determines the field type
Title: shown in the property panel
Help Text: shown in the property panel
An optional default value
GET /api/module/properties/{id} HTTP/1.1
Accept: */*
successful operation
{
"id": "text",
"type": "text",
"title": "text",
"helpText": "text",
"default": "text"
}Get a list of templates available for a particular data type
DataType to return templates for
Type to return templates for
An array of module templates for the provided datatype
Represents a module template
The templateId
Type of template (static|element|stencil)
If this template extends another
The datatype of this template
The title
Description of the Module Template
Icon
Thumbnail this is the location to a module template's thumbnail, which should be added to the installation relative to the module class file.
A flag indicating whether the template should be excluded from the Layout Editor
Is Visible?
Is Enabled?
A stencil, if needed
A comma separated list of groups/users with permissions to this template
GET /api/module/templates/{dataType} HTTP/1.1
Accept: */*
An array of module templates for the provided datatype
{
"templateId": "text",
"type": "text",
"extends": {
"template": null,
"override": null,
"with": null,
"escapeHtml": null
},
"dataType": "text",
"title": "text",
"description": "text",
"icon": "text",
"thumbnail": "text",
"showIn": "text",
"properties": [
{
"id": "text",
"type": "text",
"title": "text",
"helpText": "text",
"default": "text"
}
],
"isVisible": true,
"isEnabled": true,
"propertyGroups": [
{
"id": null,
"expanded": null,
"title": null,
"helpText": null
}
],
"stencil": {
"elements": [
{
"id": null,
"top": null,
"left": null,
"width": null,
"height": null,
"rotation": null,
"layer": null,
"elementGroupId": null,
"properties": [
"text"
]
}
],
"twig": "text",
"hbs": "text",
"head": "text",
"style": "text",
"hbsId": "text",
"width": 1,
"height": 1,
"gapBetweenHbs": 1,
"elementGroups": [
{
"id": null,
"top": null,
"left": null,
"width": null,
"height": null,
"layer": null,
"title": null,
"slot": null,
"pinSlot": null
}
]
},
"assets": [
null
],
"groupsWithPermissions": "text"
}Get a module template properties which are needed to for the editWidget call
The Template DataType
The Template Id
successful operation
GET /api/module/template/{dataType}/properties/{id} HTTP/1.1
Accept: */*
successful operation
{
"ANY_ADDITIONAL_PROPERTY": "text"
}Last updated
Was this helpful?

