Skip to content

Latest commit

 

History

History
72 lines (57 loc) · 1.65 KB

README.md

File metadata and controls

72 lines (57 loc) · 1.65 KB

Project title

Risk Service

Motivation

Serve as Risk API to Money Transfer API

Quality Gate

Ignored

Features

  • Evaluate the transaction risk

Run locally

Docker

git clone https://github.com/luizgustavocosta/virtual-threads.git
cd virtual-threads/risk-service
mvn package
docker build -t virtual-threads/risk-service .
docker run -p 8081:8081 virtual-threads/risk-service

Command line

git clone https://github.com/luizgustavocosta/virtual-threads.git
cd virtual-threads/risk-service

Option 1

./mvnw spring-boot:run

Option 2

mvn package 
java -jar target/risk-service-0.0.1-SNAPSHOT.jar

Languages and Tools:

           

The versions are available here.

Architecture:

Money transfer

img.png

API

This API has only endpoint that responds after 3 seconds, in order to simulate a I/O operation

Examples of usage

Risk evaluation

curl -X 'GET' \
  'http://localhost:8081/v1/risks/transaction/1234-5678/cellphone' \
  -H 'accept: */*'

References

Transaction Check