Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages