Skip to content

peppehermes/ecommerce-payment-demo

Repository files navigation

E-commerce payment system

To run the project, just run

.\mvnw spring-boot:build-image
docker compose build
docker compose up

in the root directory of the project.

The project will be available at http://localhost:8000.

The project has a main endpoint api/v1/payments that receives a JSON payload with the following structure:

{
  "senderId": 10,
  "receiverId": 20,
  "amount": 30
}

Using the enpoint api/v1/payments/{id} you can check the payment for that id.

Using the enpoint api/v1/payments/sender/{senderId} you can check the payments for that sender.

Using the enpoint api/v1/payments/receiver/{receiverId} you can check the payments for that receiver.

Finally, using the enpoint api/v1/payments/suspicious you can check the accounts that are suspicious based on the interactions (i.e. transactions) between different accounts.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors