curl --request POST \
--url https://api.example.com/api/auth/signup \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"msg": "Signup is only allowed with an @adgitmdelhi.ac.in email or a valid user ID."
}
Create a new user account with email and password
curl --request POST \
--url https://api.example.com/api/auth/signup \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"msg": "Signup is only allowed with an @adgitmdelhi.ac.in email or a valid user ID."
}
@adgitmdelhi.ac.in email addresses or valid user IDs are allowed to sign up.
@adgitmdelhi.ac.in email or a valid user ID (5+ alphanumeric characters)curl -X POST https://api.meetmates.com/api/auth/signup \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securepassword123"
}'
{
"email": "[email protected]",
"password": "securepassword123"
}
{
"msg": "Signup successful."
}
{
"msg": "Signup is only allowed with an @adgitmdelhi.ac.in email or a valid user ID."
}
@adgitmdelhi.ac.in/api/auth/login endpoint to obtain an authentication token