Skip to content

mikeobrien/WebApi.Bender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web API Bender

Nuget TeamCity Build Status

Bender is no longer being maintained. If you are already using it, consider migrating to an actively developed serializer like JSON.NET.

This library integrates Bender with the Web API.

Installation

PM> Install-Package WebApi.Bender  

Usage

To enable Bender, simply add the following line to your application bootstrapping:

GlobalConfiguration.Configuration.UseBender();

You can configure Bender with the optional DSL as follows:

GlobalConfiguration.Configuration.UseBender(x => x.UseJsonCamelCaseNaming());

To use Bender for xml or json only you can use the following methods:

GlobalConfiguration.Configuration.UseBenderForJson();
GlobalConfiguration.Configuration.UseBenderForXml();

License

MIT License