An open API service indexing awesome lists of open source software.

https://github.com/sebouellette/shoppingcart

CSCN73030 - F23, Section 10, Group 4. This is a shopping cart module for the class's Project V course. It will later be integrated with the class's ecommerce site.
https://github.com/sebouellette/shoppingcart

Last synced: 5 months ago
JSON representation

CSCN73030 - F23, Section 10, Group 4. This is a shopping cart module for the class's Project V course. It will later be integrated with the class's ecommerce site.

Awesome Lists containing this project

README

          

# 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/`
```json
{
"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/`