private IConfiguration CreateConfiguration() { var mapping = new ResourceMapping <SampleClass, DummyController>(c => c.Id); mapping.ResourceType = "sampleClasses"; mapping.AddPropertyGetter("someValue", c => c.SomeValue); mapping.AddPropertyGetter("date", c => c.DateTime); var mappingWithLinks = new ResourceMapping <SampleClassWithObjectLinks, DummyController>(c => c.Id); mappingWithLinks.ResourceType = "sampleClassesWithLinks"; mappingWithLinks.AddPropertyGetter("someValue", c => c.SomeValue); var config = new NJsonApi.Configuration(); config.AddMapping(mapping); config.AddMapping(mappingWithLinks); return(config); }