Annotation
Annotation is an array of attributes used to qualify properties of a property set type. You can define annotations in a package and assign it only to property set types that belong to the same package. In addition to the annotations you defined, you can also assign the predefined annotations offered by SAP.
The following is the only supported predefined annotation for a property type:
-
com.sap.appiot.analytics:dimension
-
You can assign this annotation only to the property types of the following predefined value data types:
-
String
-
ThingID
-
BPID
-
-
However, if you have assigned quality code to the property type of the predefined value data types listed above, you cannot assign the predefined annotation com.sap.appiot.analytics:dimension.
-
The following are the supported predefined annotations for a property set type:
-
com.sap.appiot.security:pii
-
You can assign this annotation to a property set type that contains data to identify a person or subject. Data such as nick name, birthdate, and email address are few examples that can be categorized as data that identifies a person.
-
-
com.sap.appiot.security:spi
-
You can assign this annotation to a property set type that contains critical data of a person. Data such as identification number, ethnic origin, and biometric data are few examples that can be categorized as critical data of a person.
-
Resource Path:http://<server address>[:<port number>][/path]/ThingConfiguration
Example for a base URI in a cloud foundry environment: https://config-thing-sap.cfapps.eu10.hana.ondemand.com/ThingConfiguration
Operations
CRUD Operations
| HTTP Method | Operation | URI | Scope |
|---|---|---|---|
| POST | Create Annotation | /v1/Packages('<package name>')/Annotations | <thingconf>.c |
| GET | Read Details of an Annotation | /v1/Annotations('<annotation name>') | <thingconf>.r |
| GET | Read all Annotations of a Package | /v1/Package('<package name>')/Annotations | <thingconf>.r |
| PATCH | Update an Annotation | /v1/ Annotations('<annotation name>') | <thingconf>.u |
| DELETE | Delete an Annotation | /v1/Annotations('<annotation name>') | <thingconf>.d |
Annotation Object Properties
| Property | Data Type | Mandatory | Description |
|---|---|---|---|
| Name | String | Yes | Name of the annotation |
| Descriptions | Array | No | Description of the annotation for each language with the corresponding ISO language code |
Description Object Properties
| Property | Data Type | Maximum Length | Description |
|---|---|---|---|
| LanguageCode | String | 2 | ISO code of the language of the object description |
| Description | String | 60 | Description of the object |