Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Element84/whadru-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

whadru-rest

Simple REST API for use by auditions that need to consume data from Whad-R-U-Looking'-At "app"

Requirements

Available Endpoints

  • / - top-level URI to ensure the API is running. Returns static text string akin to "Hello World"

  • /sites - returns a JSON-formatted list of all sites, including:

    • the site "key" - identifier for the site, with no spaces (e.g. NASAEarthdata or Element84)
    • the site information:
  • /sites/[site_key] - returns an informational message identifying the site identified by site_key

  • /sites/[site_key]/name - returns the human-readable name of the site identified by site_key

  • /sites/[site_key]/url - returns the full URL of the site identified by site_key

  • /sites/[site_key]/visitors - returns a list of all visitors to the site identified by site_key with:

    • for each visit, the IP address of the visitor (IPv4 format, e.g. 128.218.54.23)
    • for that IP address, the number of visits to the site (regardless of URL)
  • /sites/[site_key]/urls - returns an array of URLs off the site identified by site_key that are being tracked. Each URL entry includes:

  • /sites/[site_key]/visits - returns an array of URLs and visit counts for the site identified by site_key. Each entry includes:

About

Simple REST API for use by auditions that need to consume data from Whad-R-U-Looking'-At "app"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages