Application that harvests DOI information per EIDA network code and exposes the information through an HTTP API. Information is harvested from:
http://www.fdsn.org/networks/doi/
Modify config.json to suit your needs.
node index.js
docker build -t doi-webservice:1.0 .
docker run -p 8087:8087 [--rm] [-d] [-e "SERVICE_PORT=8087"] [-e "SERVICE_HOST=0.0.0.0"] doi-webserivce:1.0
Four envrionment variables can passed to Docker run to modify settings at runtime. Otherwise information is read from the built configuration file.
- SERVICE_HOST
- SERVICE_PORT
The supported parameters are valid SEED stream identifiers. Multiple stream identifiers may be delimited by a comma.
- network
$ curl "127.0.0.1:8087?network=GE"
[{
"network":"GE",
"doi":"10.14470/TR560404"
}]