-
Notifications
You must be signed in to change notification settings - Fork 10
Routes
BR1K edited this page Jul 6, 2018
·
4 revisions
- /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)
- 'POST' | /api/session (signin)
- 'DELETE' | /api/session (signout - no signout frontend route)
- '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
- '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)
- 'POST' | /api/watchlist_items (add company to watchlist)
- 'DELETE' | /api/watchlist_items/:id (remove company from watchlist)