curl --request POST \
--url https://api.example.com/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"error": "Error message details"
}
Register a new user account
curl --request POST \
--url https://api.example.com/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"error": "Error message details"
}
curl -X POST https://api.maytravel.com/auth/register \
-H "Content-Type: application/json" \
-d '{
"username": "jane_smith",
"email": "jane@example.com",
"password": "securepassword456"
}'
{
"message": "User registered succesfully"
}
{
"error": "Error message details"
}