backend routes - Russel-Tsang/Eventnite GitHub Wiki

Backend Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

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

session

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

events

  • GET /api/events - returns all events
  • GET /api/events/:id - returns information for specific event
  • POST /api/events - create an event
  • PATCH /api/events/:id - edit an event
  • DELETE /api/events/:id - remove an event

likes

  • POST /api/events/:event_id/likes - like an event
  • DELETE /api/events/:event_id/likes - unlike an event

follows

  • POST /api/events/:event_id/follows - follow an event
  • DELETE /api/events/:event_id/follows - unfollow an event