Skip to content

sigchi-uiuc/lapcounter-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lapcounter-backend

For 10/28, make sure that you have a Heroku instance of Flask running, everyone has been added to it, and all the code has also been pushed to this repository. Hardcode the following routes to return the following information via json:

/info/users

  • A method to return an array of all users /user/info
  • A method to return all information of a specific user
    • Name
    • Year
    • When they registered
    • Average Lap Completion Time
    • Average Speed
    • Fastest Lap Time
    • Total Laps Completed
    • Total Distance Ran
    • Total time spent running

/session/info

  • A method to return all information of a specific running session

    • Average Lap Speed
    • Fastest Lap Speed
    • Duration of Session
    • Start and End time of Session
  • Current paths for displaying data

    • /info/users
      • returns a list of users (names) with their ids
      • { "results": [ { "id": 1, "name": "username" } ] }
    • /info/(input_users)/data
      • returns the user's name, a list of laps, and averages
      • { "info": { "average": 5.5, "max_lap_time": 10, "min_lap_time": 1, "num_laps": 2, "total_time": 11 } "laps": [ { "duration": 10, "end": 10, "start": 0, "user_id": 2 }, { "duration": 1, "end": 124, "start": 123, "user_id": 2 } ], "user": { "id": 2, "name": "username" } }
    • /info/data
      • returns a list of all laps
        • { "results": [ { /* duration, end, start, user_id */ } ] }
  • Current path for uploading data

    • /upload
      • use POST method
      • {"name" : name, "registered" : registered, "start" : start, "end" : end}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •