Project Name: Retailer Rewards API Description:
TechStack:
- Springboot 3.2.12,
- Gradle 8.11
- JDK 23
- Junit 5
Logic: •$120 purchase: (120-100)*2 + (100-50)*1 = 40 + 50 = 90 points. •$80 purchase: (80-50)*1 = 30 points.
GET /api/rewards/{customerId}?months=3 ex:
How to Build:
- Once project is cloned and imported into Intellij, let the import finish,
- File > Invalidate Caches: Invalidate and restart.
- from Gradle run: gradle --refresh-dependencies
- From intellij Idea, run: gradle clean build
How to Run:
- Once Build succeeded, edit run configurations as shown in the docs. i named it CharterWork.
- run the CharterWork and it will run the app on Embedded Tomcat server on port 8081 3.Access the endpoint http://localhost:8081/api/rewards/CUST001
docs: the /docs/evidences folder contains the screenshots to outputs of G
- Gradle run
- Tomcat run
- Endpoint output from browser (Any)
- Project settings
- the /docs/outcome has the request-response screenshot