Skip to Content
Skip to Content

REST Service

Kentico CMS REST service allows you to obtain data of any object or document within the Kentico CMS system and also to modify these objects. To enable the service, you need to replace <modules> with <modules runAllManagedModulesForAllRequests="true"> in your web.config file and enable the service in Site Manager -> Settings -> Integration -> REST.

In this example, a simple query ~/rest/,CountryName,CountryDisplayName is used (with basic authentication) to obtain XML data of first 10 objects in the system and displays them in the grid.

See the code of the ~/CMSWebParts/GridForRESTService.ascx web part for technical details. Full documentation of the Kentico CMS REST service can be found in Kentico CMS Developer's Guide -> Development -> REST service.

Unable to get the data from REST service, please check the service settings and if the service is enabled. Original error: The remote server returned an error: (404) Not Found.