https://github.com/nullhawk/shopable
https://github.com/nullhawk/shopable
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nullhawk/shopable
- Owner: nullHawk
- Created: 2024-03-12T09:30:41.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T17:13:30.000Z (about 2 years ago)
- Last Synced: 2025-02-09T06:13:46.051Z (over 1 year ago)
- Language: Java
- Size: 436 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shopable
Shopable is a backend system for shopping website made in SpringBoot and uses [Fake Store API](https://fakestoreapi.com/docs)
## Endpoints:
- **Get all carts** : `http://127.0.0.1:8080/carts`
- **Get single cart :** `http://127.0.0.1:8080/carts/{id}`
- **Get in date range** : `http://127.0.0.1:8080/carts?startdate=2019-12-10&enddate=2020-10-10`
- Get user cart: `http://127.0.0.1:8080/carts/user/{id}`
- Add new cart: `http://127.0.0.1:8080/carts` with POST Request
```json
{
"userId":3,
"date":"2020-02-03",
"products":[{"productId":1,"quantity":3}]
}
```
- Update cart: `http://127.0.0.1:8080/carts/{id}` with PUT Request
```json
{
"userId":3,
"date":"2020-02-03",
"products":[{"productId":2,"quantity":5}]
}
```
- Delete cart: `http://127.0.0.1:8080/carts/{id}` with DELETE Request
```json
{
"userId":3,
"date":"2020-02-03",
"products":[{"productId":2,"quantity":5}]
}
```
##Screen Shots
- **Get all carts** :

- **Get Single Cart** :

- **Get til Date** :

- **Add new Cart** :

- **Update Cart** :

- **Delete Cart**:

> **Made with ❤️ By Suryansh Shakya during Exam**