Skip to content

infinite scroll project for understanding networks

Notifications You must be signed in to change notification settings

jfunky/Scroller2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scroller2

infinite scroll project for understanding networks fall 2017

API Routes

GET

  • /
    • Send all data
{
    "api_status": "ok",
    "data": {
        "state": true,
        "speed": 10,
        "direction": "up"
    }
}
  • /state

    • If device is on (true) or off (false)

      {
      "state": true
      }
  • /speed

    • Number that controls scroll rate

      {
      "speed": 10
      }
  • /direction

    • Scroll up the page ("up") or down the page ("down")

      {
      "direction": "up"
      }

POST

  • /submit
    • Update state, speed, direction
    • Should be x-www-form-urlencoded

About

infinite scroll project for understanding networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published