backend routes - Waynexia888/Strava-Clone GitHub Wiki

Backend Routes

HTML

  • GET/ StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user information
  • POST /api/users - sign up
  • GET /api/users/:id - returns a single user's information profile

session

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

workouts

  • GET /api/workouts - returns workouts
  • GET /api/workouts/:id - returns workout
  • POST /api/workouts - create workout
  • PATCH /api/workouts/:id - edit workout
  • DELETE /api/workouts/:id - destroy workout

routes

  • GET /api/routes - returns routes
  • GET /api/routes/:id - returns route
  • POST /api/routes - create route
  • PATCH /api/routes/:id - edit route
  • DELETE /api/routes/:id - destroy route

...more backend routes will update later...