Within .NET WebAPI, its possible to add custom formatters for the message types, under WebApiConfig.
e.g.
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
config.MapHttpAttributeRoutes();
config.Formatters.Add(new MessagePackMediaTypeFormatter());
It'd be cool if we could add a formatter to the SwaggerProvider type constructor!
Within .NET WebAPI, its possible to add custom formatters for the message types, under WebApiConfig.
e.g.
It'd be cool if we could add a formatter to the SwaggerProvider type constructor!