jfunky / Scroller2

infinite scroll project for understanding networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 100.0%