Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Latest commit

 

History

History
125 lines (96 loc) · 2.06 KB

architecture.md

File metadata and controls

125 lines (96 loc) · 2.06 KB
layout title permalink
page
Architecture
/architecture/

Link to the microservices presentation

Presentation about microservices

Architecture draft

Click to see the draft

Architecture plan

Click to see the plan

Formats of incoming messages (only suggestion! decide yourself)

FraudDetectionService

PUT /api/loanApplication/{loanApplicationId}

{
    "firstName" : "text",
    "lastName" : "text",
    "job" : "text",
    "amount" : number,
    "age" : number
}

LoanApplicationDecisionMaker

PUT /api/loanApplication/{loanApplicationId}

{
    "firstName" : "text",
    "lastName" : "text",
    "job" : "text",
    "amount" : number,
    "fraudStatus" : "text"
}

GET /api/loanApplication/{loanApplicationId}

{
    "applicationId" : "text",
    "result" : boolean
}

ClientService

POST /api/client

{
    "firstName" : "text",
    "lastName" : "text",
    "age": number,
    "loanId" : "text" (This is actually the loan application identifier.)
}

LoanApplicationService

POST /api/loanApplication

{
    "amount": number,
    "loanId" : "text" (This is actually the loan application identifier.)
}

ReportingService

POST /api/client

{
    "firstName" : "text",
    "lastName" : "text",
    "age": number,
    "loanId" : "text" (This is actually the loan application identifier.)
}

POST /api/reporting

{
    "loanId" : "text",
    "job" : "text",
    "amount" : number,
    "fraudStatus" : "text",
    "decision" : "text"
}

MarketingOfferGenerator

PUT /api/marketing/{loanApplicationId}

{
    "person" : {
        "firstName" : "text",
        "lastName" : "text"
    },
    "decision" : "text"
}

GET /api/marketing/{firstName}_{lastName}

{
    "marketingOffer" : "text"
}