-
Login: do log in customer and if customer does not exist, then got reject.
-
Payment: customer that has been login can do the payment. No max & min limit amount for transfer Transfer only do for registered customer.
-
Logout: do logout for the logged in custome.
cd api-bank
go run main.go
API Endpoint
POST /login
POST /payment
POST /logout
For login example you can use :
username : user1
password : secret
OR
username : user4
password : password
For payment you must input :
Authorization Headers :
Authorization : jwt_token
Request body form-data
to_account : username
amount : transfer_amount
merchant : merchant_name
For logout you must input :
Authorization Headers :
Authorization : jwt_token