Momentum Active Shoppe
Special Instructions:
Please clone down the project, open in an IDE or via terminal. git clone https://github.com/blaqniz/momentum-active-shoppe.git
mvn clean install
mvn spring-boot:run
console url: http://localhost:8080/h2-console
Driver class: org.h2.Driver
JDBC URL: jdbc:h2:mem:testdb
Username: sa
Password: Blank (No password required)
Swagger UI can be accessed on the below URL for easier access of the endpoints and to test with ease:
http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config#/
GET http://localhost:8080/api/products Example: http://localhost:8080/api/products
PUT http://localhost:8080/api/products/{customerId}/{productId}/{quantity} Example: http://localhost:8080/api/products/1/CKE/3
PUT http://localhost:8080/api/products/{customerId}/{productIds} Example: http://localhost:8080/api/products/1/CKE
GET http://localhost:8080/api/customers Example: http://localhost:8080/api/customers
GET http://localhost:8080/api/customers/{customerId} Example: http://localhost:8080/api/customers/{1}
Observe how the points change in the customer every time a customer purchases products from the store.
Thank you.