Skip to content

YuvalItzchakov/AvroMediaTypeFormatter

Repository files navigation

AvroMediaTypeFormatter

A media type formatter for Avro serialization with WebAPI

A MediaTypeFormatter for Avro. Uses the media type "application/avro" to invoke the media type formatter. Contains a wrapper around Microsoft.Hadoop.Avro which allows to work with runtime types.

Add it to the global configuration inside the WebApiConfig.Register method:

public static class WebApiConfig
{
    public static void Register(HttpConfiguration config)
    {
        config.Formatters.Add(new AvroMediaTypeFormatter());
    }
}

About

A media type formatter for Avro serialization and WebAPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages