-
Notifications
You must be signed in to change notification settings - Fork 3
Backend Routes
ebaek edited this page Aug 1, 2019
·
5 revisions
| Request | Action | Route |
|---|---|---|
| GET | SHOW | StaticPagesController#root |
| 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 |
| Request | Action | Route | Info |
|---|---|---|---|
| POST | CREATE | api/session | log user in |
| DELETE | DESTROY | api/session | log user out |
| Request | Action | Route | Info |
|---|---|---|---|
| GET | SHOW | /api/companies/:id | return company information |
| 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 |
| Request | Action | Route | Info |
|---|---|---|---|
| GET | INDEX | /api/transactions | return all of a user's transactions |
| POST | CREATE | /api/transactions | create a transaction |