Table of Contents
The transaction-management-service
is an application to simple transaction. The operations provided the services can be easily integrated with any UI.
The service also provides simple transaction operation.
The service is built using spring boot with H2 in memory database. It can also run as a persitent database on local machine.
The service is build using following frameworks/languages.
- Java
- Junit
- Spring boot
- Git
- Gradle
- H2 embedded
- Git action (CI)
Clone the project and get the prequisites setup.
Make sure the following tools are installed on your local machine.
-
Java
apt-get install openjdk-17-jdk
-
Git
apt-get install git
-
Gradle
apt-get install gradle
-
Clone the project.
git clone https://github.com/ck29/tf-transaction-management-service.git
-
Clean and build
cd tf-transaction-management-service gradlew clean build
-
Start application
java -jar build/transaction-management-service-0.0.1-SNAPSHOT.jar
-
Once the application is running, we can query the API using various method. The details about the endpoints are available using openapi specification. The specification can be downloaded using following link.
POST /tf/service/transaction/new HTTP/1.1
Host: localhost:8085
Content-Type: application/json
{
"recipientAccount": "NL66ABNA0112234968",
"senderAccount": "NL04ABNA0169208646",
"amount": 550,
"transactionMessage": "test_message"
}