Tuesday, July 12, 2016

Custom media content type in MVC Web Api 2

The MVC Web Api is quite powerfull in that it enables us to develop REST web services, however one key factor of REST design principles is  hypermedia as the engine of application state.

To achieve this, a custom media formatter class must be defined in MVC web api 2 project and then add and object of this class to GlobalConfiguration.Configuration.Formatters collection.

An in depth article can be found at

http://www.tugberkugurlu.com/archive/creating-custom-csvmediatypeformatter-in-asp-net-web-api-for-comma-separated-values-csv-format


No comments:

Regex obfuscate email

 Use this code in C# to obfuscate email using regex // Online C# Editor for free // Write, Edit and Run your C# code using C# Online Compile...