The application for processing the payment between users.
- Java Oracle OpenJDK 17
- Spring Boot 3.2.2
- PostgreSQL
API Specification Documentation: /swagger-ui/index.html
For profile creation we must provide the necessary information:
POST /trusted/auth/sign-up
{
"username": "string",
"password": "password",
"name": "name"
}
For signing in to the system we should provide following endpoint with username and password and we will get the jwt tokens:
POST /trusted/auth/sign-in
{
"username": "username",
"password": "password"
}
For account creation we have to provide the requisite that we want to use
POST /user/create-account
-H Authorization: Bearer-Token
{
"requisite":"0705040643"
}
For getting information about profile and account, we have to fetch it
GET user/profile
-H Authorization: Bearer-Token
For proceed the payment we have to send following payload to endpoint:
POST payment/proceed-payment
-H Authorization: Bearer-Token
{
"account_id": 2,
"recipient_requisite": "0705040644",
"amount": 200
}