Actually, the format of arguments to set annotations has been made consistent with the rest of code base based on advice from William.
The client now will take a list of entities and their corresponding annotations, thus setting different annotations on individual entity from the entities list in one call.
E.g. entity a will be annotated with pairs1 whereas entity b with pairs2.
......{
"Type": "Annotations", "Request": "Set", "Params": { "Annotations": { {"Entity": a, "Annotations": pairs1}, {"Entity": b, "Annotations": pairs2}
}
}
}......
Actually, the format of arguments to set annotations has been made consistent with the rest of code base based on advice from William.
The client now will take a list of entities and their corresponding annotations, thus setting different annotations on individual entity from the entities list in one call.
E.g. entity a will be annotated with pairs1 whereas entity b with pairs2.
"Request" : "Set",
"Params" : {
"Annotations ": {
{"Entity" : a, "Annotations": pairs1},
{"Entity" : b, "Annotations": pairs2}
......{
"Type": "Annotations",
}
}
}......