Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.02 KB

readme.md

File metadata and controls

50 lines (34 loc) · 1.02 KB

Dwarf upstream

core component

Sections

Overview

Upstream service exposes Dwarf API as REST API

Environment variables

Name Default Description
GATEWAY_HOST localhost Gateway host
GATEWAY_PORT 38080 Gateway port
PORT 38082 Upstream port

How to try

Method GET

curl -X GET http://localhost:38082/upstream/dwarf-demo/reverse?str=Hello
{"str":"olleH"}

Method POST

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"}