Skip to content

Instantly share code, notes, and snippets.

@imanishmeena
Forked from sauthieg/hello-world.json
Created January 9, 2022 06:43
Show Gist options
  • Save imanishmeena/097f9c15927612480ba7eea03c54eecf to your computer and use it in GitHub Desktop.
Save imanishmeena/097f9c15927612480ba7eea03c54eecf to your computer and use it in GitHub Desktop.
Returns "Hello World" when `http://localhost:8080/hello` is invoked
{
"heap": {
"objects": [
{
"name": "Hello",
"type": "StaticResponseHandler",
"config": {
"status": 200,
"entity": "<html><body><h1>Hello World</h1></body></html>"
}
}
]
},
"condition": "${matches(exchange.request.uri.path, '^/hello')}",
"handler": "Hello"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment