You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note
set cookies after success Set-Cookie ใน response headers ใช้สำหรับ auth
POST/signIn
Parameters
name
type
data type
description
username
required
string
email / phoneNumber
password
required
string
N/A
Responses
http code
content-type
response
200
application/json
{"message":"Authentication successful"}
400
application/json
{"message":"Invalid password"}
500
application/json
{"message":"error"}
POST/signUp
Parameters
name
type
data type
description
fullName
required
string
N/A
email
required
string
N/A
password
required
string
N/A
phoneNumber
required
string
N/A
Responses
http code
content-type
response
200
application/json
{"message": "Registration successful"}
400
application/json
{"msg": "something wrong"}
login แล้ว (ยืนยันตัวตนด้วย cookie)
Note
จำเป็นต้องมี Cookie ใน headers ตอนส่ง
GET/balanceSummary(BusinessLogic)
Details
totalNumber: totalDeposit + microFinancePotentaiLending + peerSharePotentaiLending
microFinancePotentiaLending: get all peerSharingDetail by userId then sumup potential amount
peerSharePotentaiLending: get all microFinanceDetail by userId then sumup potential amount
Parameters
NONE
Responses
http code
content-type
response
200
application/json
{totalBalance: Number, microFinance: Number, peerShare: Number }