Headless Content API

The Content API is a module that extends your Redakt CMS application with a WebAPI that can be used to request published content. This is useful for headless operation with Single Page Applications, that do not need the full rendering engine of a regular web application. You can use the Content API both in combination with the Redakt.Web web rendering package, or you can exclude web rendering altogether and use the Content API on its own. The Content API is installed through an optional NuGet package.

Installation

Install the package with the NuGet package manager or the Package Manager Console.

PM> Install-Package Redakt.Web.Api

Register Content API services in the ConfigureServices method in your project's Startup.cs file.

public void ConfigureServices(IServiceCollection services)
{
    // ... framework and other services here

    services.AddRedakt(this.Configuration, builder =>
    {
        // ... other Redakt services
        builder.AddWebApi();
    });
}

Configuration

The Content API does not require any configuration.