The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.
ASP.NET Core 2.1 will be supporting RFC 7807 - Problem Details for HTTP APIs (see here for more discussion by the ASP.NET Core team). This defines a data structure (the RFC provides for encoding in either JSON or XML) for communicating more information about the cause of an error.
It would be good if Refit supported parsing this in its ApiException? It would need to identify if the response to any non-success HTTP code was of type application/problem+json and deserialize appropriately.
ASP.NET Core 2.1 will be supporting RFC 7807 - Problem Details for HTTP APIs (see here for more discussion by the ASP.NET Core team). This defines a data structure (the RFC provides for encoding in either JSON or XML) for communicating more information about the cause of an error.
It would be good if Refit supported parsing this in its
ApiException
? It would need to identify if the response to any non-success HTTP code was of typeapplication/problem+json
and deserialize appropriately.