Retrieving the Thumbnails for a Part
You can retrieve the thumbnails along with small thumbnails for a part.
|
You must use PTC.ApplicationData/<attribute> in the request URI when you use $select or $filter on the Content, FileName, FileSize, Format, or MimeType attributes.
|
The following example demonstrates how to retrieve the thumbnails along with small thumbnails for a part. Use the following GET URI:
URI
GET /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:280403')?$expand=Thumbnails,SmallThumbnails
The request returns URLs for the thumbnails and small thumbnails. You can copy and paste the URLs in your browser to open the thumbnail images only once and for a limited time.
To retrieve the format icon, tool tip, and content label for small thumbnails, use the following GET URI with expand:
URI with Expand
GET /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:280403')?$select=Identity&$expand=SmallThumbnails($select=FormatIcon,PTC.ApplicationData/Content)
To retrieve the format icon, tool tip, and content label for thumbnails, use the following GET URI with expand:
URI with Expand
GET /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:280403')?$select=Identity&$expand=Thumbnails($select=FormatIcon,PTC.ApplicationData/Content)