Base URL: http://localhost/api/v1/auth
POST /| Parameter | Type | Description |
|---|---|---|
email |
string |
Required. Email of user to login |
password |
string |
Required. Password of user to login |
| Response | Type | Description |
|---|---|---|
success |
Object |
status : 200, message: "Login Success" |
error |
Object |
status : 400, message: "Fail" |
POST /register| Parameter | Type | Description |
|---|---|---|
fullname |
string |
Required. Name of user to create |
email |
string |
Required. Email of user to create |
password |
string |
Required. Password of user to create |
password_confirm |
string |
Required. confirm of user to create |
| Response | Type | Description |
|---|---|---|
success |
Object |
status : 200, message: "You have register successfully" |
error |
Object |
status : 400, message: "Your record already exists with us!!" |