PI Web API Search: How to search for attribute categories?

Currently exploring the features of PI Web API for making a simple web portal based on AF data.

 

But I can not figure out a way to search for attribute categories. (All the interesting data is tagged with a attribute category)

 

It seems that only element categories are searchable and not the attribute categories. I hope is missed something?

 

The data I want to get is: Give me for element X all attributes and child attributes with category Y. (Next action is getting the links / WebID as pointed out by Roger Palmen

Parents
No Data
Reply
  • That sounds a lot like the functionality i need: https://server/piwebapi/elements/{webId}/attributes?categoryName=category1&searchFullHierarchy=true, especially if this also contains the WebId.

     

    I can't use search at the moment and my workaround is just walking trough all attributes and child elements attributes. (2 levels deep). When they match the category, I display the attribute with the latest value. (Resulting in 80 GET requests.. )

     

    I think that a lot of web application will have a need for latest value, so why not include it directly in the API result? This saves extra calls.

     

    https://server/piwebapi/elements/{webId}/attributes?categoryName=category1&searchFullHierarchy=true&includeLatestValues=true

     

     

Children
No Data