Skip to content

RangeSentinel/dummy-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Range Sentinel Web API

Below is an outline of the api the frontend will need in order to be a functional website:

Note that all endpoints begin with /web to denote routes made for the frontend.

Installation

Install dependencies with npm install.

Run this backend with node app.js.

GET Endpoints

  • /web/ping

    • Status: 200
    • Response: text/plain "pong"
  • /web/nodes

    • Status: 200
    • Response: application/json A JSON array detailing all nodes information
  • /web/node?id={node id}

    • Status: 200
    • Request:
      • Required: query string specifying node id
    • Response: application/json A JSON object detailing specified node
  • /web/alerts

    • Status: 200
    • Response: application/json A JSON array containing all alerts
  • /web/alert?id={alert id}

    • Status: 200
    • Request:
      • Required: query string specifying alert id
    • Response: application/json A JSON object detailing specified alert

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors