Read all Object Instances
With this method, you can get all the object instances for an object type.
Request
URI: /ObjectType/v2/<FullyQualifiedObjectTypeIDWithUnderscores>
Operation Type: CRUD
HTTP Method: GET
Permissions: <cdinstance>.r
Query Request Parameters
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| $top | No | Integer | Number of records to include in the result set |
| $skip | No | Integer | Number of the first n records to be excluded from the result set |
| $inlinecount | No | String |
Total number of object types available; permissible values are allpages and none. The following results apply if this parameter is used in conjunction with the other query parameters:
|
| $orderby | No | String |
Field name to be used for sorting the result set in ascending order. To sort the result set, use asc for the ascending order and desc for the descending order. |
| $filter | No | String |
Filter condition to be applied; only valid fields are ObjectID and dynamic fields defined for the object type. The filter operators supported are eq, lt, gt, le, ge, and ne. Multiple filters are supported using the separators – and, or. You can use the string functions such as substringof, startswith, and endswith to search data using $filter. The valid fields are ObjectID and dynamic fields defined for the object type. |
| $select | No | String | Select condition for the data fields to be included in the result set; the only valid fields are ObjectID and dynamic fields defined for the object type. |
Request Header
|
Name |
Required |
Data Type |
Description |
|---|---|---|---|
|
Accept-Language |
Optional |
string |
Accepted language header.
|
Request Example
/ObjectType/v2/iotae_devtest1_aejob_automobilestes:Material
Response
Format: ATOM/JSON
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | OK for Success |
Response Payload Example
{
"d": {
"results": [
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('Material1')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('Material1')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "Material1",
"Density": "{\\\"EN\\\":\\\"300\\\"}",
"State": "{\\\"EN\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('ABCD1234')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('ABCD1234')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "ABCD1234",
"Density": "{\\\"de\\\":\\\"300\\\", \\\"en\\\":\\\"400\\\"}",
"State": "{\\\"de\\\":\\\"null\\\", \\\"en\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P1')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P1')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "P1",
"Density": "{\\\"en\\\":\\\"null\\\"}",
"State": "{\\\"en\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P3')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P3')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "P3",
"Density": "{\\\"en\\\":\\\"null\\\", \\\"de\\\":\\\"400\\\"}",
"State": "{\\\"en\\\":\\\"null\\\", \\\"de\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P4')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P4')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "P4",
"Density": "{\\\"de\\\":\\\"200\\\", \\\"en\\\":\\\"null\\\", \\\"fr\\\":\\\"200\\\"}",
"State": "{\\\"de\\\":\\\"null\\\", \\\"en\\\":\\\"Solid\\\", \\\"fr\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('Material2')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('Material2')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "Material2",
"Density": "{\\\"en\\\":\\\"500\\\", \\\"de\\\":\\\"600\\\"}",
"State": "{\\\"en\\\":\\\"null\\\", \\\"de\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('Material3')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('Material3')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "Material3",
"Density": "{\\\"de\\\":\\\"900\\\"}",
"State": "{\\\"de\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P5')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P5')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "P5",
"Density": "{\\\"de\\\":\\\"200\\\", \\\"en\\\":\\\"null\\\", \\\"fr\\\":\\\"200\\\"}",
"State": "{\\\"de\\\":\\\"null\\\", \\\"en\\\":\\\"Solid\\\", \\\"fr\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P6')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P6')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "P6",
"Density": "{\\\"de\\\":\\\"200\\\", \\\"en\\\":\\\"null\\\", \\\"fr\\\":\\\"200\\\"}",
"State": "{\\\"de\\\":\\\"null\\\", \\\"en\\\":\\\"Solid\\\", \\\"fr\\\":\\\"null\\\"}"
},
{
"__metadata": {
"id": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P7')",
"uri": "http://localhost:9080/customdata-services/ObjectType/v2/iotae_devtest1_aejob_automobilestes%3AMaterial('P7')",
"type": "com.sap.appiot.iotae_devtest1_aejob_automobilestes:Material"
},
"ObjectID": "P7",
"Density": "{\\\"de\\\":\\\"200\\\", \\\"en\\\":\\\"null\\\"}",
"State": "{\\\"de\\\":\\\"null\\\", \\\"en\\\":\\\"Solid\\\"}"
}
]
}
}