REST con Kotlin + Spark Framework

package com.codemonkey import spark.kotlin.* fun main(args:Array<String>){ println("Funcionando correctamente!!"); demoMockA(); } fun demoMockA(): Unit { val http: Http = ignite() //http://localhost:4567/api/holaKotlin http.get("/holaKotlin") { "Spark Framework desde Kotlin"; } }
Crear un sencillo servicio REST usando Kotlin + Spark Framework

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.