curl -X POST https://api.demet.com/intern/signup \
-H "Content-Type: application/json" \
-b "access_token=your_access_token" \
-d '{
"name": "Juan Pérez",
"email": "[email protected]",
"password": "123456",
"rol": "Administrador"
}'
{
"mensaje": "Registro Exitoso"
}
Register a new employee in the system
curl -X POST https://api.demet.com/intern/signup \
-H "Content-Type: application/json" \
-b "access_token=your_access_token" \
-d '{
"name": "Juan Pérez",
"email": "[email protected]",
"password": "123456",
"rol": "Administrador"
}'
{
"mensaje": "Registro Exitoso"
}
Administrador - Full administrative accessAsistente de Gerencia - Management assistant accesscurl -X POST https://api.demet.com/intern/signup \
-H "Content-Type: application/json" \
-b "access_token=your_access_token" \
-d '{
"name": "Juan Pérez",
"email": "[email protected]",
"password": "123456",
"rol": "Administrador"
}'
{
"mensaje": "Registro Exitoso"
}
Show Validation Schema Details
| Field | Type | Validation |
|---|---|---|
| name | string | Minimum 3 characters |
| string | Valid email format | |
| password | string | Minimum 6 characters |
| rol | enum | Must be “Administrador” or “Asistente de Gerencia” |
verifyRol middleware