curl --request POST \
--url https://api.example.com/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"nombre": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"usuario": {
"usuario.id": "<string>",
"usuario.nombre": "<string>",
"usuario.email": "<string>",
"usuario.rol": "<string>"
},
"400 Bad Request": {},
"422 Unprocessable Entity": {}
}Register a new user in the Tesis Rutas platform
curl --request POST \
--url https://api.example.com/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"nombre": "<string>",
"email": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"usuario": {
"usuario.id": "<string>",
"usuario.nombre": "<string>",
"usuario.email": "<string>",
"usuario.rol": "<string>"
},
"400 Bad Request": {},
"422 Unprocessable Entity": {}
}curl -X POST https://api.tesisrutas.com/auth/register \
-H "Content-Type: application/json" \
-d '{
"nombre": "María González",
"email": "[email protected]",
"password": "securePassword123"
}'
{
"message": "Usuario registrado correctamente.",
"usuario": {
"id": "507f1f77bcf86cd799439011",
"nombre": "María González",
"email": "[email protected]",
"rol": "visitante"
}
}
{
"detail": "El email ya está registrado."
}
{
"detail": [
{
"loc": ["body", "email"],
"msg": "value is not a valid email address",
"type": "value_error.email"
}
]
}