@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) @ThingworxExtensionApiAnnotation(since={6,6}) public @interface ThingworxServiceMapping
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
name
Required parameter: The name of the characteristic to bind the service mappings to. |
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
deleteService
Optional parameter: The name of the service on this class that will handle delete requests. |
java.lang.String |
description
Optional parameter: A description of the characteristic being mapped. |
java.lang.String |
listService
Optional parameter: The name of the service on this class that will handle list requests. |
java.lang.String |
queryService
Optional parameter: The name of the service on this class that will handle query requests. |
public abstract java.lang.String name
public abstract java.lang.String description
public abstract java.lang.String queryService
The service should have, at minimum, one STRING parameter for receiving the ID of the characteristic entry to query. If multiple parameters exist, the first STRING parameter will be used. If the service includes a maxItems parameter (case-sensitive), the maxItems value included in the request (if any) will be passed to the parameter.
public abstract java.lang.String deleteService
The service should have, at minimum, one STRING parameter for receiving the ID of the characteristic entry to delete. If multiple parameters exist on the service, the last one will receive the ID.
public abstract java.lang.String listService
If the service includes a maxItems parameter (case-sensitive), the service will be invoked with the maxItems value included in the request, if any.