Retrieving Classification Node Information Along with Count
This example shows how to retrieve a list of classification nodes, along with the count of objects classified under each node, and the internal name and display name of each node.
Use the following GET request.
URI
GET /Windchill/servlet/odata/ClfStructure/GetClassificationNodeInfoWithCount(attributeName='Classification',bindingAttrObjType='wt.part.WTPart')
Response
{
"@odata.context": "<Windchill_Base_URL>/servlet/odata/ClfStructure/$metadata#Collection(PTC.ClfStructure.ClassifiedNodeObject)",
"@PTC.AppliedContainerContext.LocalTimeZone": "GMT",
"value": [
{
"internalName": "CHIPSET",
"displayName": "CHIPSET",
"classifiedObjectCount": "11"
},
{
"internalName": "CAPACITOR-VARIABLE-TRIMMER",
"displayName": "TRIMMER",
"classifiedObjectCount": "119"
}
]
}
Было ли это полезно?