Skip to content

Latest commit

 

History

History
47 lines (26 loc) · 1.17 KB

README.md

File metadata and controls

47 lines (26 loc) · 1.17 KB

Cart Service

This is a Spring Boot application that functions as a Cart Service, which internally makes API calls to the Fake Store API. This follows MVC architecture and includes CRUD operations. This is a RESTApi which returns the JASON response.

Url for the FakeStoreApi: https://fakestoreapi.com

Localhost: http://localhost:8080/carts

How to

GET:

Get All Carts:

http://localhost:8080/carts

image

Get a Single Cart Based on id:

http://localhost:8080/carts/1

image

Get Carts in a Date Range: http://localhost:8080/carts?startdate=2020-10-03&enddate=2020-12-12

Get Carts By User id:

http://localhost:8080/carts/user/1

image

Get User Carts in a Date Range: http://localhost:8080/carts/user/1?startdate=2020-10-03&enddate=2020-12-12

POST:

http://localhost:8080/carts

PUT, PATCH:

http://localhost:8080/carts/1

DELETE:

http://localhost:8080/carts/1