-
Notifications
You must be signed in to change notification settings - Fork 23
Migration Guide
S'pht'Kr edited this page Feb 4, 2015
·
1 revision
There are significant changes to the API in 0.3.0 that you should be aware of when upgrading:
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);