Is there any good framework (similar to jersey-cli...
# ktor
t
Is there any good framework (similar to jersey-client or retrofit) for doing rest calls with annotated interfaces in a node-js context?
It seems to be a common question in this channel, but all the answers seems to be for the JVM.
s
Afaik the ktor client is multiplatform
t
yes, but what I'm looking for is something that eats annotated interfaces and spits clients that you just call methods on, e.g.
Copy code
public interface GitHubService {
  @GET("users/{user}/repos")
  suspend fun listRepos(@Path("user") user: String): List<Repo>
}
It's synthetic sugar, but does a LOT for readability imho
👆 1
h
https://github.com/dss99911/kotlin-simple-architecture/tree/master/api May I share this library? It's similar to retrofit on MP