Windchill REST Services Framework Capabilities > Support for OData > Windchill REST Services OData Properties
Windchill REST Services OData Properties
The OData properties control the core WRS framework behavior related to OData specifications. You can set properties in the odata.properties file located in <WT_HOME>/codebase/com/ptc/odata/core/odata.properties.
maxPageSize
Default
2000
Synopsis
Configures the maximum page size value while making a request in the odata.properties properties.
Description
The default value for maxPageSize is 2000. However, it can be set to any value, up to a maximum of 100000. The odata.maxpagesize value specified in Prefer Header, while making a request, overrides the default page size value.
defaultPageSize
Default
25
Synopsis
Configures the default page size value while making a request in the odata.properties properties.
Description
The default value for defaultPageSize is 25. Once the value is set, it should be applied to all WRS end points that support pagination. The odata.maxpagesize value specified in Prefer Header while making a request, overrides the defaultPageSize value.
useCachedJavaScript
Default
true
Synopsis
Improves performance by using cached JavaScript files. When implementing customizations, the property can be set to false for JavaScript changes to take effect without restarting Windchill.
Description
When implementing customizations, set the property to false for JavaScript changes to take effect without restarting Windchill.
expandMaxLevel
Default
10
Synopsis
Configures max level ($levels=max) for expand.
Description
Provides ability to configure max level ($levels=max) for expand
* 
If client requests for max value greater than expandMaxLevel value, then it will return an error “The levels to expand specified in $levels parameter exceeds the maximum allowed value of expandMaxLevel”.
这对您有帮助吗?