Shopping Cart Module
This is the shopping cart module for CSCN73030 Lab 2.
Documentation
Legend
-- Text surrounded by <> is a variable. Do not include <> when using the API.
?foobar? -- Text surrounded by ?? is content that is to be decided later in development.
Open User's Cart
Request
GET /
Link to Profile Module
Request
GET /profile/
Response
307: Temporary Redirect
Location: http:///?profile_endpoint?/
Redirecting to profile page for user: '' at http:///?profile_endpoint?/
Upload Product to Cart
Request
POST /api/upload/
{
"id": PRODUCT_ID_HERE,
"sellerid": SELLER_ID_HERE,
"name": "PRODUCT_NAME_HERE",
"description": "PRODUCT_DESCRIPTION_HERE",
"imgurl": "PRODUCT_IMAGE_HERE",
"cost": PRODUCT_COST_HERE
}
Remove Product from Cart
Request
DELETE /api/remove//
Link to ad Module
Request
GET /cart/