This is the basic template for a Merrymake service.
The merrymake.json
file defines one hook main/hello
, and maps it to the action handleHello
.
The index.ts
file defines the handler handleHello
.
The handler first parses the payload, then replies with a hello-message, including the payload.
First push the code, either through Git or with the command
$ mm deploy
If you don't have a key yet, make one now:
$ mm key
Now you can trigger using:
$ curl --silent -d "World" -H "Content-Type: text/plain" https://rapids.merrymake.io/[key]/hello
Hello, World!