Skip to content
jcompagni10 edited this page Nov 23, 2017 · 6 revisions

Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user information
  • POST /api/users - sign up

session

  • POST /api/session - log in
  • DELETE /api/session - log out

tasks

  • GET /api/tasks/ - returns index of all tasks (not sure if actually necessary)
  • GET /api/tasks/:id - returns task joined with tests
  • POST /api/tasks/:id/check - checks correctness of task, returns test results

level sets

  • GET /api/level_sets - returns index of all tasks sets joined with title and order of tasks and user task completion

bots

  • GET /api/bots - returns index of all bots joined with user bot_completion
  • GET /api/bots/:id - returns single bot

head to head

  • GET /api/head_to_head/:id - returns single head to head

Frontend Routes

  • /login
  • /signup
  • /dashboard - navigate to mode of play
  • /arcade - select arcade level
  • /bots - select bot
  • /:mode/repl/:taskId/:language - complete a task in repl
Clone this wiki locally