Skip to content
Adam Hartz edited this page Oct 28, 2015 · 3 revisions

##api location

https://rocky-falls-8228.herokuapp.com/api/activities/

https://rocky-falls-8228.herokuapp.com/api/activities/{activity_id}/stats/

https://rocky-falls-8228.herokuapp.com/api/users/

Shared expectations for api JSON naming

Users

  • username
  • password

Activity

  • user = models.ForeignKey(User) (not needed in form; comes with logged in http request)
  • full_description
  • units

Stat

  • user = models.ForeignKey(User)
  • activity_id
  • reps
  • date (note that this is changed from timestamp because we are recording events by date only)
Clone this wiki locally