/TopologyAPI

Primary LanguageJavaScript

TopologyAPI

TopologyAPI is an api which deals with topologies and can execute following function:

  • Read a topology from a given JSON file and store it in the memory.

  • Write a given topology from the memory to a JSON file.

  • Query about which topologies are currently in the memory.

  • Delete a given topology from memory.

  • Query about which devices are in a given topology.

  • Query about which devices are connected to a given netlist node in a given topology.

API is implemented in javascript as it is an object oriented programming languate and it can easily deal with JSON files.

Prerequisites

nodejs and npm are needed to be installed. After that, run command:

npm install

to install needed libraries

How to Run

run command:

npm start

Program run result

click here to see program run result

How to test

run command:

npm test

Screen for program test result