Skip to content

Instantly share code, notes, and snippets.

@markusthoemmes
Created June 3, 2017 12:52
Show Gist options
  • Save markusthoemmes/eb2d8967303a4fdf63d4f27c04ddbdb0 to your computer and use it in GitHub Desktop.
Save markusthoemmes/eb2d8967303a4fdf63d4f27c04ddbdb0 to your computer and use it in GitHub Desktop.
A Kotlin based action for OpenWhisk
import com.google.gson.JsonObject
fun main(args : JsonObject): JsonObject {
val name = args["name"].asString
val response = JsonObject()
response.addProperty("message", "Hello $name!")
return response
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment