Skip to content
BR1K edited this page Jul 6, 2018 · 4 revisions

Front-end

  • /signup (robinhood has 4 forms on 4 pages, I will start with just 1)
  • /signin
  • /home (dashboard)
  • /stocks/:id (stock 'show' page - clicking on a company also takes you here - might use stock symbol as wildcard)
  • /account (Accessed from 'account' modal)
  • /notifications (bonus)
  • /news (bonus)

Back-end

Session

  • 'POST' | /api/session (signin)
  • 'DELETE' | /api/session (signout - no signout frontend route)

User

  • 'POST' | /api/user | (sign up)
  • 'GET' | /api/user | (account page)
  • 'DELETE' | /api/user | (delete account - bonus)
  • 'PATCH' | /api/user | (update account info - bonus) Note: there will be only 1 user per session; cannot look at other user profiles

Stocks

  • 'GET' | /api/stocks/:id (stock 'show page' - get stock info)
  • 'GET' | /api/stocks/:id (same route as above; used for search)
  • 'GET' | /api/user/stocks (portfolio; all of user's stocks)
  • Bonus:
  • 'POST' | /api/stocks (buy shares for first time)
  • 'DELETE' | /api/stocks/:id (sell shares)
  • 'PATCH' | /api/stocks/:id (buy more shares)

Watchlist

  • 'POST' | /api/watchlist_items (add company to watchlist)
  • 'DELETE' | /api/watchlist_items/:id (remove company from watchlist)
Clone this wiki locally