Skip to content

REST API I created to support a mobile application as part of a coding challenge for a job application. See https://github.com/dpweberza/coin-dispense-client

License

Notifications You must be signed in to change notification settings

dpweberza/coin-dispense-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See my referencing blog post for this coding challenge assignment here.

REST Web Service

Tools: NetBeans (IDE), Postman (API Testing)

Frameworks / Libraries:

  • Spark (Web Framework)
  • Guice (Dependency Injection)
  • Gson (JSON)
  • JUnit (Testing)
  • Nimbus JWT (Authentication)
  • JBCrypt (Hashing)

Endpoints:

  • api/v1/public/authenticate - accepts and verifies credentials then returns a user profile as well as a JSON Web Token to authenticate future requests.
  • api/v1/authenticated/payment - accepts a payment amount, subtracts the payment amount from the user's account, updates the user profile and returns a breakdown of any change to be dispensed.

Assumptions:

  • If an amount owed as change is less than the lowest denomination (2 cents), ignore that remainder.

About

REST API I created to support a mobile application as part of a coding challenge for a job application. See https://github.com/dpweberza/coin-dispense-client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages