Foso / Ktorfit

HTTP client generator / KSP plugin for Kotlin Multiplatform (Android, iOS, Js, Jvm, Native) using KSP and Ktor clients inspired by Retrofit https://foso.github.io/Ktorfit
https://foso.github.io/Ktorfit
Apache License 2.0
1.53k stars 40 forks source link

Openapi client generator #200

Open mihai1voicescu opened 1 year ago

mihai1voicescu commented 1 year ago

Is your feature request related to a problem? Please describe. Most of the API docs are now provided along with an OpenAPI spec.

It is frustrating and bug-prone to match this by hand with a manually built Ktorfit.

OpenAPI has generator components that generate clients and server stubs from an API spec. This will greatly increase productivity when creating a new client (which you are free to then edit until it fits your needs).

Describe the solution you'd like Implement a client generator for Ktorfit.

Docs can be found here.

Foso commented 1 year ago

Hi, i like the idea. I dont think i will find the time to implement this. But in case someone wants to do it, it seems there is an generator for Retrofit. I think the easiest way would be to copy and modify that for Ktorfit