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.
- Host: GitHub
- URL: https://github.com/sebouellette/shoppingcart
- Owner: SebOuellette
- Created: 2023-10-07T17:45:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-09T19:34:32.000Z (almost 2 years ago)
- Last Synced: 2025-05-13T00:52:50.787Z (5 months ago)
- Language: C++
- Size: 1.5 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/`