Skip to main content
1-Visitor
May 8, 2017
Question

Is there a way to retrieve the "names" of respective elements object id with REST API available in windchill 11.0?

  • May 8, 2017
  • 1 reply
  • 2339 views

We are  trying to explore the methodology to retrieve data from Swagger UI (REST API).

Please help us.

1 reply

2-Explorer
May 8, 2017

Say you want to get all the parts that starts with number 000000006, you can make a rest api call like below. In the select you can select the attributes of the element which you want to retrieve.

http://ourserver/Windchill/servlet/rest/objects?%24select=name%2Cstate%2Cchild&typeId=wt.part.WTPart&%24filter=startswith(number%2C%20%27000000006%27)

We will get a JSON response like this.

jsonreponse.jpg

1-Visitor
November 7, 2019

Hello. This post helped me a lot. I was wondering if you know of a place that has a list of the property names that we can query? Specifically, I'm looking for the filename (including extension).

 

Thank you!