grid-tariff-api-tester

0.0.9 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i grid-tariff-api-tester

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

44 kB

Total Files

4

Last publish

Collaborators

  • lpa