Skip to content

suhyura/GatewayService

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gateway Service

Taks

  • Create service that talks to ScoringService and MatchingService

Verb : POST Endpoint : /loans Request Body :

{
    "name" : "jan",
    "lastName" : "kowalski",
    "country" : "Poland",
    "income" : 100000,
    "mortgage" : false,
    "amount" : 1000
}
  • If ScoringService returns Eligblity: false then return 404 with message That loan cant be quoted for given information

  • If ScoringService returns Eligblity: true then return object with quote result

{
    "amountRequested" : 1000,
    "totalAmounttoRepay" :  1008,
    "apr" : 7.9%,
    "montlyRepayments" : 68.95
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%