Since Entsoe only provides an XML interface, which is difficult to integrate into (web) applications, this repository contains a GraphQL adapter for the Entsoe API.
The Entsoe restful API Implementation Guide explains the business context and provides the use case and process sequence.
$ npm install
$ yarn
$ npm run prestart
After the generation you can find the typings in ./src/graphql.ts
.
To run the app you have to provide specific environment variables
Environment variable | Description |
---|---|
ENTSOE_API_URL | URL to the Entsoe Transparency API |
ENTSOE_SECURITY_TOKEN | Security token for the Entsoe API |
PLAYGROUND | GraphQL playground enabled (true, false) |
DEBUG | GraphQL debug enabled (true, false) |
LOG_LEVEL | debug, info, warn, error |
To use the adapter you have to provide a security token.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Author - Aigner Johannes