Just wanted to note ktor, a really nice kotlin framework to easily create server applications. Defining a REST API looks for example like this:

install(Routing) {
    get("/foo") {
        call.respondText("bar")
    }
    route("api") {
        intercept(ApplicationCallPipeline.Infrastructure) {
            AuthCheckInterceptor.intercept(this)
        }
        route("cars") {
            get {
                ListCarsHandler().doIt(this)
            }
        }
    }
}

Check the website or the github page.

Categories: Main

Leave a Reply

Your email address will not be published. Required fields are marked *