GithubHelp home page GithubHelp logo

ldms's Introduction

LDMS

Run

./mvnm spring-boot:run

End-point: localhost:8080/api/loan

Method: POST

localhost:8080/api/loan

Body (raw)

{
	"principal": 5000,
	"annualInterestRate": 5.5,
	"termInMonths": 24,
	"balloonPayment": 0
}

⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃

End-point: localhost:8080/api/loan/{id}

Method: GET

localhost:8080/api/loan/:loan

Body (raw)

{
    "id": 1,
    "principal": 5000.0,
    "annualInterestRate": 5.5,
    "termInMonths": 24,
    "balloonPayment": 0.0,
    "schedule": [
        {
            "principalPayment": 197.5616141240141,
            "interestPayment": 22.916666666666668,
            "remainingBalance": 4802.438385875986,
            "month": 1
        },
        {
            "principalPayment": 198.46710485541584,
            "interestPayment": 22.011175935264934,
            "remainingBalance": 4603.97128102057,
            "month": 2
        },
        {
            "principalPayment": 199.37674575266982,
            "interestPayment": 21.101535038010947,
            "remainingBalance": 4404.5945352679,
            "month": 3
        },
        ...
    ]
}

⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃

End-point: localhost:8080/api/loan

Method: GET

localhost:8080/api/loan

Body (raw)

[
    {
        "id": 1,
        "principal": 5000.0,
        "annualInterestRate": 5.5,
        "termInMonths": 24,
        "balloonPayment": 0.0,
        "schedule": [
           ...
        ]
    },
    {
        "id": 2,
        "principal": 5000.0,
        "annualInterestRate": 5.5,
        "termInMonths": 24,
        "balloonPayment": 0.0,
        "schedule": [
            ...
        ]
    },
    {
        "id": 3,
        "principal": 5000.0,
        "annualInterestRate": 5.5,
        "termInMonths": 24,
        "balloonPayment": 0.0,
        "schedule": [
            ...
        ]
    },
    ...
]

⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃

ldms's People

Contributors

morses-code avatar

Watchers

 avatar

ldms's Issues

Issue with number rounding

I noticed due to number rounding issues there is always a balance remaining after final payment.
Didn't get time to investigate.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.