Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.44 KB

File metadata and controls

28 lines (20 loc) · 1.44 KB

Fetch Rewards Coding Exercise - Backend Software Engineering

A web service that accepts HTTP requests and returns responses based on the application requirements and conditions using Java Spring Boot

Prerequisites:

JavaSDK 11
Maven 3.x or higher

To execute the server

API's and their responses

/addPayer

-POST request a valid JSON body with { "payer": "payerName", "points": points, "timestamp": "timestamp" }
-Response is an HTTP Status of execution at the server or any exception that may occur

image

/spendPoints

-POST request valid JSON body with { "points": points }
-Response is an HTTP Status, if valid a key-value pair of payer name and corresponding deducted points or any exception that may occur

image

/payerPoints

-GET request for current balance of points for each payer in the system
-Response is a key-value pair of payer name and corresponding current point balance

image