Skip to content

Backend Routes

ebaek edited this page Aug 1, 2019 · 5 revisions

HTML

Request Action Route
GET SHOW StaticPagesController#root

API Endpoints

USERS

Request Action Route Info
GET SHOW /api/users/:id returns the user information with historical transactions and newsfeed
POST CREATE /api/users sign up user

SESSION

Request Action Route Info
POST CREATE api/session log user in
DELETE DESTROY api/session log user out

COMPANIES

Request Action Route Info
GET SHOW /api/companies/:id return company information

WATCHLISTS (WATCHLIST ITEMS)

Request Action Route Info
GET INDEX /api/watchlists returns user's watchlists
POST CREATE /api/watchlists create a watchlist
DELETE DESTROY /api/watchlists/:id delete a watchlist

TRANSACTIONS

Request Action Route Info
GET INDEX /api/transactions return all of a user's transactions
POST CREATE /api/transactions create a transaction

Clone this wiki locally