curl --request POST \
--url https://api.example.com/api/auth/registro \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"nombre": "<string>",
"apellidos": "<string>",
"email": {},
"password": "<string>",
"fecha_nacimiento": "<string>",
"direccion_envio": "<string>",
"rol": "<string>",
"activo": true,
"usuario_id": 123
}
'{
"200": {},
"400": {},
"token": "<string>",
"tipo": "<string>"
}Register a new user account
curl --request POST \
--url https://api.example.com/api/auth/registro \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"nombre": "<string>",
"apellidos": "<string>",
"email": {},
"password": "<string>",
"fecha_nacimiento": "<string>",
"direccion_envio": "<string>",
"rol": "<string>",
"activo": true,
"usuario_id": 123
}
'{
"200": {},
"400": {},
"token": "<string>",
"tipo": "<string>"
}value property.Validation: Must be a valid email formatADMIN, CLIENTEDefault: CLIENTE (for customer registrations)truecurl -X POST http://localhost:8080/api/auth/registro \
-H "Content-Type: application/json" \
-d '{
"username": "johndoe",
"nombre": "John",
"apellidos": "Doe",
"email": "[email protected]",
"password": "securePassword123",
"fecha_nacimiento": "1990-01-15",
"direccion_envio": "123 Main St, Madrid, Spain",
"rol": "CLIENTE",
"activo": true
}'
{
"username": "johndoe",
"nombre": "John",
"apellidos": "Doe",
"email": "[email protected]",
"password": "securePassword123",
"fecha_nacimiento": "1990-01-15",
"direccion_envio": "123 Main St, Madrid, Spain",
"rol": "CLIENTE",
"activo": true
}
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"tipo": "Bearer"
}
fecha_nacimientoADMIN or CLIENTEcurl -X GET http://localhost:8080/api/resource \
-H "Authorization: Bearer YOUR_TOKEN_HERE"