is it possible to build a typesafe kotlin web api ...
# ktor
d
is it possible to build a typesafe kotlin web api that works on client using kotlinjs & server with jvm? something kinda like servant in haskell where you only have to write one api for the client & server
r
If you mean what I think you do (not familiar with Haskell), Locations is as close as you can get with pure Kotlin, and my krosstalk library gets you most of the rest of the way: https://github.com/rnett/krosstalk. Kvision has something similar, too
c
wow this is cool
a
@rnett can krosstalk be used with JSON as well? or only CBor for now?
r
a
So, does
@KService
use krosstalk under the hood?
r
No