Backend Routes - ChrisPHong/Sea GitHub Wiki

/watchlists

GET /watchlists/:id

  • A signed in user will be able to have multiple watchlists with multiple stocks inside each watchlist

POST /watchlists

  • A signed in user will be able to create a new watchlist to compartmentalize different stock sectors.

PUT /watchlists/:id

  • A signed in user will be able to edit their watchlist and remove the associated stocks that are under the specified watchlist.

DELETE /watchlists/:id

  • A signed in user will be able to delete an entire watchlist and all of its associated stocks within that watchlist.

/users

GET /users/:id

  • A signed in user will only be able to see their own profile and information.

PUT /users/:id

  • A signed in user will be able to update their information.

POST /users/login

  • Users can login.

POST /users/register

  • Users can register new a new account.

/stocks

GET /stocks/:id

  • A user will be able to look up a stock and its information.

/transactions

GET /transactions

  • Return a list of previous transactions.

POST /transactions/update

  • User buys or sells stocks