Risk Service
Serve as Risk API to Money Transfer API
Ignored
- Evaluate the transaction risk
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
git clone https://github.com/luizgustavocosta/virtual-threads.git
cd virtual-threads/risk-service
./mvnw spring-boot:run
mvn package
java -jar target/risk-service-0.0.1-SNAPSHOT.jar
The versions are available here.
This API has only endpoint that responds after 3 seconds, in order to simulate a I/O operation
curl -X 'GET' \
'http://localhost:8081/v1/risks/transaction/1234-5678/cellphone' \
-H 'accept: */*'