The Purchase Microservice API offers a set of endpoints for managing purchase-related functionalities, including cart management, order processing, and wish list management.
Description: This group of endpoints provides functionalities to manage the shopping cart, including creation, retrieval, and updating.
- POST
/api/cart- Description: Creates a new shopping cart.
- GET
/api/cart- Description: Retrieves a list of all shopping carts.
- PUT
/api/cart- Description: Updates the contents of the shopping cart.
Description: This group of endpoints manages order processing, including order creation and retrieval.
- POST
/api/order- Description: Creates a new order.
- GET
/api/order- Description: Retrieves a list of all orders.
- GET
/api/order/{orderId}- Description: Retrieves detailed information about an order by ID.
Description: This group of endpoints manages wish lists, allowing the creation, retrieval, updating, and deletion of wish list items.
- POST
/api/wish-list- Description: Creates a new wish list.
- GET
/api/wish-list- Description: Retrieves a list of all wish lists.
- GET
/api/wish-list/{wishListId}- Description: Retrieves detailed information about a wish list by ID.
- PUT
/api/wish-list/{wishListId}- Description: Updates a wish list by ID.
- DELETE
/api/wish-list/{wishListId}- Description: Deletes a wish list by ID.
Ensure that you have the following prerequisites installed on your machine:
1. Clone the repository:
git clone https://github.com/Pavithra-Selvaraj/ProductService
cd ProductService2. Update DB connection string: Open appsettings.json and update the database connection string.
3.Build and Run the application locally:
dotnet build
dotnet runThis project is licensed under the MIT License.
For detailed information on how to use the API, refer to the API documentation available at http://localhost:5004/swagger.