Backend Routes - guanw88/EventFul GitHub Wiki

HTML

  • GET / StaticPagesController#root

API

Users

  • GET /api/users - returns list of users
  • GET /api/users/:id - returns information about a specific user
  • PATCH /api/users/:id - update user information (e.g. purchase history)
  • POST /api/users - creates a new user

Session

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

Events

  • GET /api/events - returns list of events
  • GET /api/event/:id - returns information about a specific event
  • PATCH /api/event/:id - update event information
  • POST /api/events - creates a new event
  • DELETE /api/events/:id - cancel an event

Tickets

  • GET /api/tickets - returns list of tickets
  • GET /api/tickets/:id - returns information about a specific ticket
  • PATCH /api/tickets/:id - update ticket information
  • POST /api/tickets - creates a new ticket
  • DELETE /api/tickets/:id - delete/cancel a ticket

Categories

  • POST /api/categories - add a category to an event
  • DELETE /api/categories/:id - remove a category from an event

Bookmarks

  • POST /api/bookmarks - create a bookmark
  • DELETE /api/bookmarks/:id - delete a bookmark