REST API to calculate the total price of all the watches in the cart after applying discounts, if any.
Endpoint | Method | Body | Response |
---|---|---|---|
/api/ecommerce/checkout | POST |
List of ids of watches | Total final price of the watches or an error |
Navigate to the project repository from terminal. Generate the JAR
mvn clean install
Import the project repository in your IDE and click Run as
->Java Application
OR run the project from terminal.
java -jar target/<jar_file_name>.jar
Examples