private static void ConfigureJsonFormatter(HttpConfiguration config) { var jsonFormatter = config.Formatters.JsonFormatter; jsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue(ContentTypes.CreateFor <PipelineModel>())); jsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue(ContentTypes.CreateFor <ProjectsModel>())); jsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue(ContentTypes.CreateFor <ReleaseCandidateModel>())); var settings = jsonFormatter.SerializerSettings; settings.Formatting = Formatting.Indented; settings.ContractResolver = new CamelCasePropertyNamesContractResolver(); }