network-api
Introduction
network-api is a tool that can be used to interact with your network using REST API calls. It can be used to expose your network to developers who are more familiar with REST API framework without having to understand the underlying protocol and complexities of interacting with the network programmatically.
Technology Stack
The tool uses the following technologies to provide a simple API interface to interact with the network.
Application Architecture
The application architecture can be illustrated in the below drawing:
The application flow can be characterised as below:
API Documentation
FastAPI automatically generates interactive API documentation. The generated documentation follows the Swagger 2.0 specification.
Recommended by LinkedIn
A screen shot of the generated API documentation is as below:
Sampel Output
You can interact with the application using your choice of a web-browser or an API platform like Postman or simple curl commands.
For the sake of representation, below are screenshots of the GET /facts and GET /interfaces endpoints using Postman.
device_facts
interfaces
Project Repository
If you are keen to test the application, the code base with detailed instructions on how to install it and replicate it to your environment can be found here.
Teach me your waaaaaaays oh wise yoda 🙌🏻
Interesting concept. Please keep posting about it 🙂
Nice, thank you very much for sharing.