GET, POST | /api/objects/getschemas | Get domain points (data point definitions) for objects | |
---|---|---|---|
GET, POST | /api/objects/{ObjectIds}/schemas | Obsolete |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ObjectIds | path | List<string> | Yes | List of object ids |
Fields | body | List<string> | No | Specify attributes to be included in the response |
ClientRequestHandle | body | string | No | |
mdmids | body | List<string> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
data | form | Dictionary<string, int> | No | |
domaininfo | form | Dictionary<int, DomainSchemaList> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ReplyInfo | form | ReplyInfo | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RcvTime | form | double | No | |
ReplyTime | form | double | No | |
ClientRequestHandle | form | string | No | |
Error | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
schemas | form | List<DomainSchema> | No | |
domainID | form | int | No | |
domainName | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
SchemaId | form | int? | No | |
SchemaTemplateId | form | int? | No | |
SchemaTemplate | form | string | No | |
DomainId | form | int? | No | |
Schema | form | string | No | |
Desc | form | string | No | |
ParentId | form | int? | No | |
ParentSchema | form | string | No | |
ValueType | form | string | No | |
Multiple | form | int? | No | |
PointType | form | string | No | |
Unit | form | string | No | |
EuHigh | form | double? | No | |
EuLow | form | double? | No | |
Coerce | form | string | No | |
Deadband | form | double? | No | |
DeadbandType | form | int? | No | |
UpdateRate | form | int? | No | |
Required | form | bool? | No | |
AccessType | form | int? | No | |
Disabled | form | int? | No | |
Metadata | form | string | No | |
DataTemplateType | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/objects/getschemas HTTP/1.1
Host: mdn.bazefield.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
objectIds:
[
String
],
fields:
[
String
],
clientRequestHandle: String,
mdmids:
[
String
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { data: { String: 0 }, domaininfo: { 0: { schemas: [ { schemaId: 0, schemaTemplateId: 0, schemaTemplate: String, domainId: 0, schema: String, desc: String, parentId: 0, parentSchema: String, valueType: String, multiple: 0, pointType: String, unit: String, euHigh: 0, euLow: 0, coerce: String, deadband: 0, deadbandType: 0, updateRate: 0, required: False, accessType: 0, disabled: 0, metadata: String, dataTemplateType: String } ], domainID: 0, domainName: String } }, replyInfo: { rcvTime: 0, replyTime: 0, clientRequestHandle: String, error: String } }