"Timestamp" "Status" "Message" "Path"
"Timestamp" "Status" "Message" "Path"
Database My SQL
Ketentuan :
1. Point penilaian : - Applikasi Run Well : 40 %
- Unit Testing : 30 % (code coverage minimum 70 %)
- Method, Swagger, Dockerfile etc : 30 %
1. Account
No Method Url Description
Body if Error
{
{ "timestamp": "2020-03-06T13:20:20.456+0000",
“account” : “234343”, "status": 400,
“name” : “Bara”,
"message": "Name Mandatory",
“balance” : 300000.0
} "path": "/account"
}
account : mandatory with length 6 Numeric
name : mandatory with length minimum 5 {
balance : mandatory with minimum 1.000.000 "timestamp": "2020-03-06T13:20:20.456+0000",
"status": 400,
"message": "insufience balance",
"path": "/account"
}
{
"timestamp": "2020-03-06T13:20:20.456+0000",
"status": 400,
"message": "Insufience balance",
"path": "/account/balance"
}
Transaction
1. Add Balance
2. Transfer
3. Point To Balance
4. Beli Pulsa
No Method Url Description
if success transfer :
{
"timestamp": "2020-03-06T13:20:20.456+0000",
"status": 200,
"message": "tranfer from 857465 to 984587
success",
"path": "/transaction/transfer"
}
if success transfer :
{
"timestamp": "2020-03-06T13:20:20.456+0000",
"status": 200,
"message": "tranfer point from 857465 success",
"path": "/transaction/point"
}
5 POST /transaction/pulsa
if success :
Point calculation :
if amount > 10.000 then point 10% of amount
if point > 10.000 then point is 10.000
{
"timestamp": "2020-03-06T13:20:20.456+0000",
"status": 200,
"message": "pulsa to 081288009115 success ,
you got 9.000 point",
"path": "/transaction/pulsa"
}