Backend Routes - lxg073000/scarab GitHub Wiki

  • users
    • GET /api/users - returns user data
    • POST /api/users - sign up
  • session
    • POST /api/session - login
    • DELETE /api/session - logout
  • supply_routes
    • GET /api/supply_routes - fetch a supply route
    • POST /api/supply_routes - create a supply route
    • PATCH /api/supply_routes/:id - update a supply route
    • DELETE /api/supply_routes/:id - delete a supply route
  • segments
    • GET /api/segments - fetch a segment
    • POST /api/segments - create a segment
    • `PATCH /api/segments/:id - update a segment
    • DELETE /api/segments/:id - delete a segment
  • waypoints
    • GET /api/waypoints/:segment_id/:id - fetch a waypoint
    • POST /api/waypoints/:segment_id/:id - create a waypoint
    • `PATCH /api/waypoints/:segment_id/:id - update a waypoint
    • DELETE /api/waypoints/:segment_id/:id - delete a waypoint
  • buggouts
    • GET /api/buggouts - fetch all buggout drills
    • POST /api/buggouts - create a buggout drill
    • `PATCH /api/buggouts/:id - update a buggout drill
    • DELETE /api/buggouts/:id - delete a buggout drill
  • likes
    • POST /api/likes - create a like
    • DELETE /api/likes/:id - delete a like
  • comments
    • POST /api/comments - create a comment
    • DELETE /api/comments/:id - delete a comment