What’s New > Windchill > 13.0.2.7 > Windchill REST Services > Framework and General Capabilities
Framework and General Capabilities
Windchill REST Services 13.0.2.7
Description
The following are the updates to the WRS framework and general capabilities:
In compliance with OData Spec, duplicate navigation properties in $expand are no longer allowed.
For example, the following request will now return a 400 error:
/Parts?$expand=$expand=UsedBy($orderby=Name asc),UsedBy($orderby=Name desc)
The property allowDuplicateNavigation has been added as an opt-out mechanism for customers to avoid breaking their clients in case they need time to fix them.
For more information on odata.properties, see Windchill REST Services OData Properties.
Enhancement to create and update actions to support expand navigation properties. For example, when using PTC.ProdMgmt.CreateUses action to create part usage links with occurrences, you can optionally specify $expand=Occurrences in the request URL to get the occurrences in the response.
Enhancement to add a PTC.ReadOnly annotation to the actions metadata for read-only actions. This ensures that the actions that do not modify data are clearly identified and handled appropriately.
For information on configuring actions as read-only, see Configuring Bound Actions and Configuring Unbound Actions.
Custom annotations are added to each nonfilterable/nonsortable property on the entity type:
PTC.NonFilterable—Indicates that a property cannot be used in a $filter query parameter.
PTC.NonSortable—Indicates that a property cannot be used in a $orderby query parameter.
Using these properties in $filter or $orderby results in a 400 status code.
A new wcSearchTargetTypes setting for the entity configuration enables you to restrict the object types searched and returned during GET requests to that entity set.
Modifications to odata.properties now require a MethodServer restart. This change improves performances in high-concurrency scenarios.
Enhancements to GetWindchillMetaInfo() expose the internal names and mappings of navigation properties generated for the object reference alias soft attributes.
Related Information
For more information, see the topics for Windchill REST Services Framework Capabilities.
Was this helpful?