docker run -it -p 8080:8080 fourswords/fourswords-bridge:latest
Testing
To call the API, you need to send a POST request to http://localhost:<port>/
with the request body being of the ChainLink RunResult
type.
curl -X POST http://localhost:8080/ \
-H 'Content-Type: application/json' \
-d @- << EOF
{
"jobId": "1234",
"data": {
"api": ["https://www.bitstamp.net/api/v2/ticker/btcusd/", "https://api.pro.coinbase.com/products/btc-usd/ticker"],
"paths": ["$.last", "$.price"],
"aggregationType": "median"
}
}
EOF