New release of Ktorfit, it's now using Ktor Client...
# feed
f
New release of Ktorfit, it's now using Ktor Clients 2.3.0 https://github.com/Foso/Ktorfit
🎉 3
👍 5
o
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
Copy code
routing {
   handle(MyInterfaceImpl(db, …))
}
handle will be generated function, resolved by interface type and receiving instance of interface implementation
f
I think it should be possible to write such a tool