-
Notifications
You must be signed in to change notification settings - Fork 1
API Routes
John Sims edited this page Jun 18, 2021
·
5 revisions
This web app uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.
-
A logged in user may view all listings of planets and buy/sell a currently selected asset
GET api/planets
-
User can see individual asset with all of its details/description
GET api/planets/:id
-
User can make initial purchase
POST api/assetsPOST api/transactions
-
User can buy more shares or sell less than their max shares
PATCH api/assets/:idPOST api/transactions
-
User can sell all of their shares
DELETE api/assets/:id
-
User can view their previous transactions
GET api/transactions/