Created
July 2, 2012 01:45
-
-
Save ntotten/3030404 to your computer and use it in GitHub Desktop.
ApiController Formatter Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class FormatterConfig | |
| { | |
| public static void ConfigureApi(HttpConfiguration config) | |
| { | |
| // Remove the XML formatter | |
| config.Formatters.Remove(config.Formatters.XmlFormatter); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment