Created
June 3, 2017 12:52
-
-
Save markusthoemmes/eb2d8967303a4fdf63d4f27c04ddbdb0 to your computer and use it in GitHub Desktop.
A Kotlin based action for OpenWhisk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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