Refit 2.2.0
What's New
Refit Serializer Settings
Refit now allows you to control JSON serialization, via passing in a new RefitSettings
type into RestService.For<T>
:
var gitHubApi = RestService.For<IGitHubApi>("https://api.github.com",
new RefitSettings {
JsonSerializerSettings = new JsonSerializerSettings {
ContractResolver = new SnakeCasePropertyNamesContractResolver()
}
});
Diagnostic information (#79, thanks @nekresh)
Refit now prints diagnostic information inside VS when an interface can't be generated