You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);