Skip to content

Jollyfant/nodejs-doi-webservice

Repository files navigation

nodejs-doi-webservice

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/

Configuration

Modify config.json to suit your needs.

Running

node index.js

Docker

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

API

The supported parameters are valid SEED stream identifiers. Multiple stream identifiers may be delimited by a comma.

  • network

Example

$ curl "127.0.0.1:8087?network=GE"

[{
    "network":"GE",
    "doi":"10.14470/TR560404"
}]

About

Webservice for mapping EIDA network codes to DOIs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published