Skip to content

Instantly share code, notes, and snippets.

@mdoering
Created September 3, 2019 10:29
Show Gist options
  • Save mdoering/2dedcec8ec9730360c4fc261dba161b8 to your computer and use it in GitHub Desktop.
Save mdoering/2dedcec8ec9730360c4fc261dba161b8 to your computer and use it in GitHub Desktop.
col tree api parents with placeholders
// 20190903122905
// http://localhost:8080/dataset/3/tree/f55812e8-5422-402e-b071-b67a9cdf481f--incertae-sedis--FAMILY
[
{
"datasetKey": 3,
"id": "f55812e8-5422-402e-b071-b67a9cdf481f",
"parentId": "0",
"name": "<i>Viruses</i>",
"rank": "kingdom",
"status": "accepted",
"childCount": 99,
"estimates": [
{
"key": 225,
"subject": {
"id": "f55812e8-5422-402e-b071-b67a9cdf481f",
"name": "Viruses",
"rank": "kingdom",
"code": "virus"
},
"created": "2015-10-22T21:24:25",
"createdBy": 0,
"modifiedBy": 0,
"estimate": 2876,
"type": "described species living",
"referenceId": "18"
},
{
"key": 226,
"subject": {
"id": "f55812e8-5422-402e-b071-b67a9cdf481f",
"name": "Viruses",
"rank": "kingdom",
"code": "virus"
},
"created": "2015-10-22T21:30:57",
"createdBy": 0,
"modifiedBy": 0,
"estimate": 3186,
"type": "described species living",
"referenceId": "66"
}
],
"sectorKey": 2946,
"estimate": 3031
},
{
"datasetKey": 3,
"id": "0",
"name": "<i>Biota</i>",
"rank": "unranked",
"status": "accepted",
"childCount": 8,
"datasetSectors": {
"1005": 1,
"1006": 3,
"1008": 1,
"1009": 1,
"1010": 6,
"1011": 1,
"1012": 1,
"1014": 1,
"1015": 1,
"1018": 1,
"1019": 1,
"1020": 1,
"1021": 1,
"1022": 1,
"1023": 1,
"1024": 44,
"1025": 1,
"1026": 1,
"1027": 1,
"1028": 2291,
"1029": 1,
"1030": 1,
"1031": 1,
"1032": 1,
"1033": 5,
"1034": 2,
"1036": 18,
"1037": 10,
"1038": 25,
"1039": 19,
"1040": 1,
"1042": 1,
"1044": 1,
"1045": 1,
"1046": 3,
"1047": 1,
"1048": 1,
"1049": 1,
"1050": 1,
"1051": 6,
"1052": 1,
"1053": 1,
"1054": 1,
"1055": 5,
"1057": 1,
"1058": 1,
"1059": 1,
"1061": 19,
"1062": 1,
"1063": 1,
"1065": 1,
"1066": 1,
"1067": 10,
"1068": 1,
"1069": 1,
"1070": 1,
"1073": 1,
"1074": 2,
"1076": 1,
"1078": 1,
"1079": 58,
"1080": 1,
"1081": 1,
"1082": 1,
"1085": 1,
"1086": 1,
"1087": 1,
"1088": 1,
"1089": 1,
"1090": 1,
"1091": 1,
"1092": 5,
"1093": 1,
"1094": 1,
"1095": 1,
"1096": 1590,
"1097": 50,
"1098": 255,
"1099": 6,
"1100": 1,
"1101": 1,
"1103": 1,
"1104": 1,
"1105": 1,
"1106": 1,
"1107": 1,
"1108": 1,
"1109": 1,
"1110": 1,
"1112": 1,
"1113": 1,
"1115": 69,
"1118": 3,
"1119": 1,
"1120": 1,
"1122": 1,
"1123": 1,
"1124": 1,
"1125": 1,
"1126": 1,
"1127": 1,
"1128": 1,
"1129": 1,
"1130": 18,
"1131": 3,
"1132": 1,
"1133": 1,
"1134": 1,
"1138": 1,
"1139": 1,
"1140": 2,
"1141": 140,
"1142": 1,
"1143": 1,
"1144": 1,
"1146": 1,
"1148": 1,
"1149": 1,
"1150": 1,
"1152": 1,
"1153": 1,
"1154": 1,
"1157": 1,
"1158": 1,
"1161": 1,
"1162": 8,
"1163": 1,
"1164": 1,
"1166": 1276,
"1167": 1,
"1168": 1,
"1169": 1,
"1170": 1,
"1171": 1,
"1172": 1,
"1173": 1,
"1174": 3,
"1175": 1,
"1176": 1,
"1177": 1,
"1178": 1,
"1179": 2,
"1180": 1,
"1181": 1,
"1182": 1,
"1183": 1,
"1184": 1,
"1185": 1,
"1186": 1,
"1188": 1,
"1189": 835,
"1190": 1,
"1191": 25,
"1192": 3,
"1193": 49,
"1194": 1,
"1195": 1,
"1196": 1,
"1197": 1,
"1198": 1,
"1199": 1,
"1200": 3,
"1201": 12,
"1202": 1,
"1203": 1,
"1204": 3
}
},
{
"datasetKey": 3,
"id": "0--incertae-sedis--ORDER",
"name": "Not assigned",
"rank": "order",
"status": "accepted",
"childCount": 1
},
{
"datasetKey": 3,
"id": "0--incertae-sedis--FAMILY",
"name": "Not assigned",
"rank": "family",
"status": "accepted",
"childCount": 1
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment