Giter VIP home page Giter VIP logo

gateway-management-app's Introduction

The Gateway Application

CI/CD Workflow

Overview

Welcome to the Gateway Application, a REST API service designed to for storing information about gateways and their associated devices. Our service provides an array of capabilities:

  • Storing New Gateway: Seamlessly register new gateway.
  • Displays Gateways Information: Displaying information about all stored gateways (and their devices)
  • Display a Single Gateway Info: Displaying details about a single gateway.
  • Add and Remove Peripheral Device: Adding and removing a peripheral device from a gateway.

Prerequisites

Ensure that input and output data are formatted in JSON.

Getting Started

To begin using the Gateway Application, follow these steps:

  1. Install the required dependencies by running:

    mvn install
  2. Start the application with:

    mvn spring-boot:run

API Endpoints

The API exposes the following endpoints:

  • Storing New Gateway: Send a POST request to /api/gateway/save with a JSON request body including name, serial number and ipAddress.

  • Displays Gateways Information: Issue a GET request to /api/gateway/all.

  • Display a Single Gateway Info: Issue a GET request to /api/gateway/{serialNumber}.

  • Add Peripheral Device: Add device to a gateway with a PUT request to /api/gateway/devices/add?serialNumber=${serialNumber}.

  • Remove Peripheral Device: Remove Device from Gateway with a DELETE request to /api/gateway/devices/${deviceId}?serialNumber=${serialNumber}.

Testing

Unit tests can be run using the following command:

    mvn test

Technology Used:

  • Java
  • SpringBoot
  • CI/CD
  • Junit & Mockito
  • Git and GitHub

Assumptions

Online/Offline Status: The "status" attribute reflects the current connectivity state of a peripheral device, indicating whether it's "online" or "offline." This status dynamically changes based on the device's connectivity to the gateway or network. Connectivity Check: The system employs a dedicated mechanism to monitor device connectivity. A scheduled task or heartbeat mechanism performs periodic checks, typically every 5 minutes, to assess device availability. This routine verifies the connectivity status of devices and updates their "online" or "offline" state accordingly.

Conclusion

In conclusion, our REST API service offers a robust solution for gateway management system and peripheral devices. We encourage you to explore the endpoints and functionalities provided by our API for a detailed guide on using our service effectively. Whether you're a developer or a user, our service is designed to simplify gateway management tasks and enhance operational efficiency.

Feel free to reach out with any questions, feedback, or suggestions.

gateway-management-app's People

Contributors

onyinyechipresh avatar

Watchers

charlancodes.dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.