How can we help?

Searching:

0 results found

Schema Definitions/Get (Specific)

GET /odata/schemaDefinitions/[schema definition id]
 

Description

Retrieves the details of a specific Schema Definition.
 

Request – SchemaDefinitions/Get (Specific)
Property Type Description Mandatory
schema definition id String This is the unique identifier automatically assigned by Axonize when a Schema Definition is created. This schema definition ID is returned in the response of the Devices/Post.

 

Example JSON SchemaDefinitions/Get (Specific) Request

curl -X GET \

http://api.axonize.com/odata/schemadefinitions/5df88b80e3b0cd1a80501234 \

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

-H ‘authorization: Token’

 

Example JSON SchemaDefinitions/Get (Specific) Response

{

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

“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”

}

}