Skip to main content
1-Visitor
May 8, 2017 5:30 PM UTC
Question

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

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

Please help us.

2 replies

2-Explorer
May 8, 2017 6:25 PM UTC

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

Translate
1-Visitor
Nov 7, 2019 10:23 PM UTC

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!

Translate