OData

Access CMS Data via OData protocol

The Open Data Protocol (OData) is a Web protocol for querying and updating data stored in a variety of sources including, but not limited to, relational databases, file systems, content management systems and traditional Web sites. For more information on OData, please visit http://www.odata.org/.

In C1 CMS version 4.1 or later, you can use OData via Web API to access C1 CMS data.

For this you need to:

  1. Install the Composite.AspNet.WebAPI package, which enables Web API support on your website.
  2. Build a Web API that will serve as a web point for accessing CMS Data on your website.
  3. Create the client code that will access data via OData, for example, in a C1 CMS Razor function.

For Steps 2 and 3, please see Example 2: Getting data using OData, in which a Web API is built to get standard CMS Pages as data and a C1 CMS Razor function is created that uses JSON to access this data via OData.

(Alternatively, you can use the Composite.Tools.OData package. However, this package is no longer supported and its use is deprecated.)

Requirements

C1 CMS version 4.1 or later