Skip to content

Backend Routes

echen831 edited this page Apr 30, 2020 · 5 revisions

HTML

  • GET / StaticPagesController#root

API Endpoints

user

  • GET / api/users/:id - get information about current user
  • POST / api/users - create a new user

session

  • POST / api/session - login
  • DELETE / api/session - logout

stocks

  • GET / api/stocks - get information of all relevant stocks
  • GET / api/stocks/:id - get information of one particular stock

watchlist

  • GET / api/watchlists/ - get user's watchlist
  • POST / api/watchlists - add an item onto user's watchlist
  • DELETE / api/watchlists/:id - remove an item on user's watchlist
Clone this wiki locally