Skip to content

tatsat99/fetchRewardsCodingExercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages