Skip to content

michaelmaysonet74/lease-miles-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lease-miles-calculator

Getting Started

Local Development

# Start Server
$ sbt server/run
# ...
# --- (Running the application, auto-reloading is enabled) ---
# [info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:8090
# (Server started, use Enter to stop and go back to the console...)

Example Request

$ curl "http://localhost:8090/lease/term-balance?currentMiles=10854"
#  {
#    "currentMiles": 10854,
#    "balance": {
#      "monthly": 9156,
#      "total": 19161
#    },
#    "lease": {
#      "year": 10,
#      "month": 0,
#      "today": {
#        "date": "8/19/2023",
#        "time": "12:37:42 PM"
#      }
#    }
#  }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages