API Routes - zyusnow/eRobin GitHub Wiki

Splash

Landing page of the app. Unless a user is logged in, this is the only page accessible. Users can sign up, log in, or log in as a demo user from this page.

  • GET /

Auth/Users

Users can sign up, log in, or log in as demo user.

  • GET /signup
  • POST /signup
  • GET /login
  • POST /login

Stocks

  • GET /stocks: return a list of stocks for search
  • GET /stocks/:id - returns a detailed stock on the stock detail page

Holdings

  • GET /user/:userId/holdings: return a list of stocks held by the user

Watchlist

  • GET /watchlist - returns a list of stocks on a users watchlist
  • POST /watchlist/add - adds a stock to the watchlist
  • DELETE /watchlist/:id - remove a stock from the watchlist

Transactions

  • GET /transaction - returns a list of previous transactions
  • POST /transaction/add - users buying or selling stocks