core component
Upstream service exposes Dwarf API as REST API
Name | Default | Description |
---|---|---|
GATEWAY_HOST | localhost | Gateway host |
GATEWAY_PORT | 38080 | Gateway port |
PORT | 38082 | Upstream port |
curl -X GET http://localhost:38082/upstream/dwarf-demo/reverse?str=Hello
{"str":"olleH"}
curl -X POST http://localhost:38082/upstream/dwarf-demo/reverse -d '{"str": "Upstream test"}' -H "Content-Type: application/json"
curl -X POST http://localhost:38082/upstream/dwarf-demo/rreverse -d '{"str": "Upstream test"}' -H "Content-Type: application/json"
{"str":"tset maertspU"}
{"str":"Upstream test"}