curl --request POST \
--url https://api.easierprop.com/admin/login \
--header 'Content-Type: application/json' \
--data '
{
"username": "admin",
"password": "s3cret"
}
'{
"ok": true,
"data": {
"token": "eyJhbGciOiJIUzI1NiIs...",
"admin": {
"id": 1,
"username": "admin",
"role": "superadmin"
}
}
}Authenticate with username and password. Returns a JWT token for subsequent admin API calls.
curl --request POST \
--url https://api.easierprop.com/admin/login \
--header 'Content-Type: application/json' \
--data '
{
"username": "admin",
"password": "s3cret"
}
'{
"ok": true,
"data": {
"token": "eyJhbGciOiJIUzI1NiIs...",
"admin": {
"id": 1,
"username": "admin",
"role": "superadmin"
}
}
}