OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.75k stars 6.56k forks source link

[REQ][Csharp-Netcore] Refit Generator #10657

Open Blackclaws opened 3 years ago

Blackclaws commented 3 years ago

Someone pointed me at this neat little library:

https://github.com/reactiveui/refit

Its basically a csharp code generator that generates accessors as part of the build process. It doesn't support openapi but that is basically where we can come in.

I'm wondering whether it might be interesting to support a generator for it. I'm willing to give it a try anyway.

The advantage would be that there is no ApiClient to maintain, essentially this would boil down to generating api-accessor interfaces and model classes.

Any thoughts? @mandrean @frankyjuang @shibayan @Blackclaws @lucamazzanti @wing328 @devhl-labs

devhl-labs commented 3 years ago

It might be worthwhile, but I would like to fix what we have first.

wing328 commented 3 years ago

Yup, agreed some developers like Refit

Ref: https://github.com/OpenAPITools/openapi-generator/issues/3581