Command line tool to verify compliance of the grid tariff api with the digin standard
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
url is the base url of the api authHeader is the name of the authentication header authKey is the value of the authentication header
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
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.