Each content type is included in a web service, together with a list of the most useful properties and field properties. For each content type, you can exclude fields that are included by default or include fields that are not included by default. You can also change the properties that are included for each field, such as sorting or filtering.
Perform the following:
The Author field is no longer available through the web service and the news Summary is available only as a read-only field.
Each type can have properties assigned to it, such as Name, Author, Related media, Parent, etc. The following types of property mappings are available: Persistent, Calculated, Navigational, and Complex. Perform the following:
NOTE: Filtering and sorting should be done on fields that have indexes on them in the database. Most of the fields do not have indexes and as a result the filtering and sorting on those fields might take longer to execute. Use caution when enabling these two settings. Or as an alternative, you could manually add indexes on the fields that you want to filter or sort.
SelectedByDefault
NOTE: All of the dates that Sitefinity CMS serves are in UTC and in the ISO 8601 format. JavaScript is familiar with this date format and can easily convert the string value of the date format to a JS object using new Date("DateVAl")
DateVAl
ResolverType
Telerik.Sitefinity.Web.Services.Contracts.PersistentNavigationResolver.
Telerik.Sitefinity.Web.Services.Contracts.RelatedDataPropertyResolver
NOTE: If your service has an auto-generated collection of types, when you add a related data or related media to a type, Sitefinity CMS automatically creates a property mapping for this field. If the collection is not auto-generated, you have to create it manually.
IMPORTANT: If you want a related data or media field to be available in the service, the type of the related data or media must also be part of the service. For example, if you want a service to expose the related images of news items, the images type must also be exposed in the service.
EXAMPLE: You can query the related images of a news item, using the following query string: /api/default/newsitems?$expand=RelatedImages In this case, RelatedImages is the exact name of the custom field that is set in the backend. Expand will return all the properties of the related items of the news type.
/api/default/newsitems?$expand=RelatedImages
For more information about querying navigational properties, see oData documentation » System Query Option $expand.
NOTE: Navigational properties do not support filtering or sorting and are not optimized for performance.
DataContractAttribute
DataMemberAttribute
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important