-
Notifications
You must be signed in to change notification settings - Fork 57
Capabilities
Custom capabilities are defined by the developer. A custom capability consists of a namespace, a capability name to uniquely identify it, and an ability. A namespace is an identifier used to group a developer's capabilities together. A namespace is created for the developer when the first capability is created for the account. A capability consists of attributes and commands. It is created under the developer's namespace. Attributes are used to describe the state of a capability and stores its status.
Note: The code for these functions can be found here.
-
list - Get a list of custom capabilities. Requires the namespace to be checked.
-
listNamespaces - Get a list of the namespaces associated with the application.
-
listStandard - Get a list of standard capabilities.
-
listVersions - Get a list of the version of the capability. Requires the capabilityID for the capability.
-
get - Get the current capability. Requires the capabilityID and capabilityVersion.
-
create - Create a new capability.
-
update - Updates a capability. Requires the capabilityID, the capabilityVersion, and the update.
-
delete - Delete the capability. Requires the capabilityID and the capabilityVersion.
-
getPresentation - Get the presentation for the specified capability. Requires the capabilityID and the capabilityVersion.
-
createPresentation - Creates a new presentation. Requires the capabilityID, the capabilityVersion, and the presentation.
-
*updatePresentation - Updates a presentation. Requires the capabilityID, the capabilityVersion, and the presentation.