https://kotlinlang.org logo
Title
f

Foso

05/06/2023, 7:38 AM
New release of Ktorfit, it's now using Ktor Clients 2.3.0 https://github.com/Foso/Ktorfit
o

orangy

05/06/2023, 8:52 AM
I wonder if it’s possible to generate the server side, too. Like I will implement the same interface on the server to do actual logic, and compiler plugin will generate all the routing and parameters unpacking and send out the result.
Generated API could be as simple as
routing {
   handle(MyInterfaceImpl(db, …))
}
handle will be generated function, resolved by interface type and receiving instance of interface implementation
f

Foso

05/06/2023, 10:50 AM
I think it should be possible to write such a tool