Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 919 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 919 Bytes

payment-service

Description

The payment service is a Spring Boot application that exposes a REST API to manage payments.

Features

The payment service exposes the following endpoints :

  1. GET /payments/credit-transfers : returns the list of all payments
  2. GET /payments/credit-transfer/{id} : returns the payment with the given id
  3. POST /payments/credit-transfer : creates a new payment
  4. PUT /credit-transfer/reverse/{paymentId} : reverses the payment with the given id

Swagger

The swagger documentation for the api endpoints is available at the following URL : http://localhost:7070/swagger-ui.html

Build

To build the payment service, run the following command :

mvn clean install

Dependencies

The payment service depends on the following projects :

  1. [account-service] - to retrieve the account information

Sequence diagram

payment.png