grid-tariff-api-tester
v0.0.9
Published
Command line tool to test the grid tariff api
Readme
Introduction
Command line tool to verify compliance of the grid tariff api with the digin standard
Getting Started
Run npm i grid-tariff-api-tester -g Tested with lts/erbium and newer versions of node
For usage enter grid-tariff-api-tester --help
How to Run
url is the base url of the api authHeader is the name of the authentication header authKey is the value of the authentication header
Examples:
grid-tariff-api-tester test-tariff-query --authKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
grid-tariff-api-tester test-tariff-query https://elvia.azure-api.net/grid-tariff/digin/api/1.0/ X-API-Key xxxxxxxxxxxxxxxxxxxx
What the tester tests
test-tariff-type: Tests that the response is valid (200) and that the response conforms to the schema
test-tariff-query: Tests that the response is valid (200) and that the response conforms to the schema
test-tariff-query-meteringpoints-gridtarifs: Tests that the response is valid (200) and that the response conforms to the schema if meteringPointIdInvalid is not set. If meteringPointIdInvalid is set, it tests that the response is 204.
Contribute
https://github.com/digin-energi/API-nettleie-for-styring
