Appendix A JSON Data Structure Schema
This appendix describes the JSON schemas used in various SymetryML REST API HTTP request and response body. This is not a pure JSON schema definition because JSON schemas do not have a primitive type for hash map, while the SymetryML API uses hash maps extensively in request/response messages. The JSON type ‘object’ is the closest data structure to a hash map, as it can be seen as an infinite set of key=string and values=objects. When part of a JSON structure should be a hash map, the object type is used in the schema definition. When an entity contains an object - that is a hash map - additional comments are added that define the keys and values allowed. These comments are highlighted in red, so you can find them easily. The formats depicted in the following sections are important because this is how the REST server deserializes the HTTP request body and serializes the HTTP response body.
Request Body JSON
DataFrame JSON
DataFrame : {
"attributeTypes": {
"type": "array" {
"items": "string"
}
},
"attributeNames": {
"type": "array" {
"items": "string"
}
},
"data" : {
"type" : "array" {
"items" : "array" {
"items" : "string"
}
}
}
}MLContext JSON
DSInfo JSON
TaskInfo JSON
DSListingRequest JSON
ExploreContext JSON
The ExploreContext data structure is a list of MLContext. It allows to request for a given exploration metrics with multiple attributes or attributes pairs.
Request Response JSON
This is the main JSON response that all REST SymetryML calls return. Depending on the call, the values, if present, will be different.
Response Entities
Response entities are JSON data structures that are returned given a specific REST request. This secondary response is added to the main response values field.
DSListingResponse JSON
JobInfo
KSVDMap
FedSyncStats
SymetryProjectOptions
KSVSMap
Prediction services use KSVSMap, which consists of a list of map<string, string>.
ModelInfo
FusionCellStatus
Fusion Status information
FusionCellStatusList
List of Fusion Status information
FusionCellInfo
Fusion Cell information
FusionCellInfoList
Fusion Cell information
ProjectInfo
The SymetryML project info request uses ProjectInfo.
StringList
StringList can be returned by various REST calls.
ProjectInfoList
ProjectInfoList is returned after restoring a specific SymetryML project or restoring all SymetryML projects for a specific customer.
FederationInfo
The SymetryML Federation info request uses FederationInfo.
AwsInfo
Amazon Web Service - AWS - information. This information will be returned as an encrypted JSON string.
Density
DensityList contains a list of Density
Density List
DensityList contains a list of Density objects.
Last updated