Object Instances
Define and maintain object instances and maintain the data of an object type
Resource Path:http://<server address>[:<port number>][/path]/ObjectType
Example for a base URI in a cloud foundry environment: https://sap-iotaeexplore.iot-sap.cfapps.eu10.hana.ondemand.com/customdata/ObjectType
Operations
CRUD Operations
| HTTP Method | Operation | URI (v1) | URI (v2) |
|---|---|---|---|
| GET | Read an Object Instance | /ObjectType/v1/<FullyQualifiedObjectTypeIDWithUnderscores>('<ObjectInstanceID>') | /ObjectType/v2/<FullyQualifiedObjectTypeIDWithUnderscores>('<ObjectInstanceID>') |
| GET | Read all Object Instances | /ObjectType/v1/<FullyQualifiedObjectTypeIDWithUnderscores> | /ObjectType/v2/<FullyQualifiedObjectTypeIDWithUnderscores> |
| POST | Create an Object Instance | /ObjectType/v1/<FullyQualifiedObjectTypeIDWithUnderscores> | /ObjectType/v2/<FullyQualifiedObjectTypeIDWithUnderscores> |
| PATCH | Update an Object Instance | /ObjectType/v1/<FullyQualifiedObjectTypeIDWithUnderscores>('<ObjectInstanceID>') | /ObjectType/v2/<FullyQualifiedObjectTypeIDWithUnderscores>('<ObjectInstanceID>') |
| DELETE | Delete an Object Instance | /ObjectType/v1/<FullyQualifiedObjectTypeIDWithUnderscores>('<ObjectInstanceID>') | /ObjectType/v2/<FullyQualifiedObjectTypeIDWithUnderscores>('<ObjectInstanceID>') |
Custom Operations
| HTTP Method | Operation Type | Operation | URI (v1) | URI (v2) |
|---|---|---|---|---|
| GET | $metadata | Metadata of Object Instances | /ObjectType/v1/$metadata | /ObjectType/v2/$metadata |
| POST | $batch | Metadata of Object Instances | /ObjectType/v1/$batch | /ObjectType/v2/$batch |