How can we help?

Searching:

0 results found

Schema Definitions/Get (List)

GET /odata/schemaDefinitions
 

Description

Get a list of all Schema Definitions assigned to the specified application.
 
curl -X GET \

https://api.axonize.com/odata/schemadefinitions/ \

-H ‘appId: 9b96eab8-fa25-4549-925d-da8ecf9a1234’ \

-H ‘authorization: your token’

Response – Devices/Get (List)
 

Example JSON Devices/Get (List) Response

{

“@odata.context”: “https://odata/$metadata#SchemaDefinitions”,

“value”: [

{

“name”: “cidds9”,

“parserType”: “JsonParser”,

“id”: “5df88b80e3b0cd1a80501234”,

“appId”: “9b96eab8-fa25-4549-925d- da8ecf9a1234”,

“createDate”: “2019-12-17T08:02:08.419Z”,

“createUser”: “1234”,

“updateDate”: “2019-12-17T08:02:08.419Z”,

“updateUser”: “1234”,

“schema”: [

{

“attributePath”: “sensor_serial”,

“actionType”: “CustomId”,

“convertInfo”: {

“functionType”: null,

“parameters”: [],

“customFunction”: null

},

“convertPipeline”: [],

“event”: null,

“patch”: null

},

{

“attributePath”: “thetime”,

“actionType”: “Datetime”,

“convertInfo”: {

“functionType”: null,

“parameters”: [],

“customFunction”: null

},

“convertPipeline”: [],

“event”: null,

“patch”: null

},

{

“attributePath”: “temperature”,

“actionType”: “Event”,

“convertInfo”: null,

“convertPipeline”: [],

“event”: {

“name”: “Temperature”,

“typeCode”: 7,

“unit”: “C”

},

“patch”: null

},

{

“attributePath”: “humidity”,

“actionType”: “Event”,

“convertInfo”: {

“functionType”: “hexToDec”,

“parameters”: [],

“customFunction”: null

},

“convertPipeline”: [],

“event”: {

“name”: “Humidity”,

“typeCode”: 8,

“unit”: “%”

},

“patch”: null

},

{

“attributePath”: “co2”,

“actionType”: “Event”,

“convertInfo”: null,

“convertPipeline”: [],

“event”: {

“name”: “CO2”,

“typeCode”: 1008,

“unit”: “ppm”

},

“patch”: null

}

],

“options”: null,

“jsonSample”: {

“content”: “{\”sensor_serial\”:\”123124\”,\”thetime\”:\”2019-11-14T11:20:50.52Z\”,\”temperature\”:22,\”humidity\”:45,\”co2\”:1500}”,

“name”: “Product temperature.json”,

“updateDate”: “2019-12-17T07:56:45.983Z”

}

},

{

“name”: “usfhzq”,

“parserType”: “JsonParser”,

“id”: “5df8ef8be3b0c71944481234”,

“appId”: “9b96eab8-fa25-4549-925d- da8ecf9a1234”,

“createDate”: “2019-12-17T15:08:59.511Z”,

“createUser”: “1234”,

“updateDate”: “2019-12-17T15:08:59.511Z”,

“updateUser”: “1234”,

“schema”: [

{

“attributePath”: “serial”,

“actionType”: “CustomId”,

“convertInfo”: {

“functionType”: null,

“parameters”: [],

“customFunction”: null

},

“convertPipeline”: [],

“event”: null,

“patch”: null

},

{

“attributePath”: “temp”,

“actionType”: “Event”,

“convertInfo”: null,

“convertPipeline”: [],

“event”: {

“name”: “Temperature”,

“typeCode”: 7,

“unit”: null

},

“patch”: null

}

],

“options”: null,

“jsonSample”: {

“content”: “{\”serial\”:\”1234\”,\”temp\”:34}”,

“name”: “payload.json”,

“updateDate”: “2019-12-17T15:08:20.115Z”

}

}

]

}