Dreamescaper / GenerateAspNetCoreClient

DotNet tool to generate HTTP client classes from ASP.NET Core api controllers.
MIT License
63 stars 5 forks source link

Partial interface #8

Closed vmachacek closed 2 years ago

vmachacek commented 2 years ago

I realized when I need to "overwrite" generated functionality mostly to provide different return type for convenience, it would be nice to make interface partial where the generated file would stay the same and I can add custom endpoint in other file keeping them separated and compatible with auto re-generation.

Dreamescaper commented 2 years ago

Yup, that makes perfect sense!

vmachacek commented 2 years ago

I made this adjustment https://github.com/Dreamescaper/GenerateAspNetCoreClient/commit/67803bee504c29bfccc8a481253befd4ce5d1e4e would that work as a PR?

Dreamescaper commented 2 years ago

@vmachacek Sure!

Dreamescaper commented 2 years ago

Thanks for your contribution, I've published updated version to nuget, please check it out. https://www.nuget.org/packages/GenerateAspNetCoreClient.Refit/

vmachacek commented 2 years ago

wicked, thanks!