@Target(value=METHOD) @Retention(value=RUNTIME) @ThingworxExtensionApiAnnotation(since={6,6}) public @interface ThingworxServiceResult
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
baseType
Required parameter: the base type for the result. |
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
aspects
Optional parameter: an array of key-value pairs associated with colons (e.g., "aspect1:value1", "aspect2:value2", …) describing aspects applicable to the field definition. |
java.lang.String |
description
Optional parameter: a short description of the service result. |
ThingworxDataShapeDefinition |
localDataShape
Deprecated.
This parameter is not examined by the Platform.
|
java.lang.String |
name
|
public abstract java.lang.String baseType
BaseTypes
public abstract java.lang.String name
Optional parameter: the name of the result as it should be referenced by other services when invoked via the REST API or via the processServiceRequest methods. If the base type of the service is InfoTable, then the name is effectively ignored. Otherwise, the result of the service is an InfoTable with one column whose key is equal to the name parameter.
Note that omitting the name parameter for any result base type aside from NOTHING or INFOTABLE will prevent the results from being accessible to JavaScript services and is considered invalid.
public abstract java.lang.String description
public abstract java.lang.String[] aspects
Aspects
@Deprecated public abstract ThingworxDataShapeDefinition localDataShape