canton7 / RestEase

Easy-to-use typesafe REST API client library for .NET Standard 1.1 and .NET Framework 4.5 and higher, which is simple and customisable. Inspired by Refit
MIT License
1.08k stars 108 forks source link

Support for standard ASP.NET Core MVC query parameter binding #162

Open rsivanov opened 4 years ago

rsivanov commented 4 years ago

Hi! I was wondering why RestEase doesn’t support serialization of complex type parameters in a format compatible with ASP.NET Core MVC by default. It’s possible to do if you implement a custom serializer, but wouldn’t it be better to include this functionality in the box?

I implemented a simple version of such a serializer to use in my projects at work ComplexTypeRequestQueryParamSerializer. Maybe you would consider to do something alike for the future version of RestEase introducing an additional QuerySerializationMethod.

timeshift92 commented 2 years ago

Please commit it