Skip to content
S'pht'Kr edited this page Feb 4, 2015 · 1 revision

Migration Guide

0.2.x to 0.3.x

There are significant changes to the API in 0.3.0 that you should be aware of when upgrading:

Instantiating and Configuring JsonApiFormatter

The IPluralizationService is now passed as an argument to the constructor rather than set as a property. So instead of:

JsonApiFormatter formatter = new JSONAPI.Json.JsonApiFormatter();
formatter.PluralizationService = new JSONAPI.Core.PluralizationService();
GlobalConfiguration.Configuration.Formatters.Add(formatter);

Do:

JsonApiFormatter formatter = new JSONAPI.Json.JsonApiFormatter(
    new JSONAPI.Core.PluralizationService()
);
GlobalConfiguration.Configuration.Formatters.Add(formatter);

Non-async methods in IMaterializer are deprecated