curl --request POST \
--url http://localhost:3000/api/register \
--header 'Content-Type: application/json' \
--data '
{
"name": "Juan Perez",
"email": "juan@demo.com",
"password": "ClaveSegura123!",
"phone": "3001234567",
"role": "CLIENTES",
"acceptTerms": true
}
'{
"user": {
"id": "<string>",
"email": "jsmith@example.com",
"role": "ADMIN",
"createdAt": "2023-11-07T05:31:56Z",
"name": "<string>"
}
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}Auth
Registrar usuario con email y password
POST
/
api
/
register
curl --request POST \
--url http://localhost:3000/api/register \
--header 'Content-Type: application/json' \
--data '
{
"name": "Juan Perez",
"email": "juan@demo.com",
"password": "ClaveSegura123!",
"phone": "3001234567",
"role": "CLIENTES",
"acceptTerms": true
}
'{
"user": {
"id": "<string>",
"email": "jsmith@example.com",
"role": "ADMIN",
"createdAt": "2023-11-07T05:31:56Z",
"name": "<string>"
}
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}{
"error": "Sin permisos de administrador",
"issues": {},
"detail": "<string>"
}Body
application/json
Required string length:
2 - 120Required string length:
8 - 128Required string length:
7 - 32Available options:
CLIENTES, CAMELLOS Available options:
true Response
Usuario creado
Show child attributes
Show child attributes