Register a new client or update existing client information
cURL
curl --request POST \ --url https://api.example.com/api/v1/clientes \ --header 'Content-Type: application/json' \ --data ' { "id": 123, "dni": "<string>", "nombreCompleto": "<string>", "correo": "<string>", "telefono": "<string>" } '
{ "id": 123, "dni": "<string>", "nombreCompleto": "<string>", "correo": "<string>", "telefono": "<string>" }
POST /api/v1/clientes
curl -X POST http://localhost:8080/api/v1/clientes \ -H "Content-Type: application/json" \ -d '{ "dni": "12345678", "nombreCompleto": "María García", "correo": "[email protected]", "telefono": "987654321" }'
{ "id": 1, "dni": "12345678", "nombreCompleto": "María García", "correo": "[email protected]", "telefono": "987654321" }
curl -X POST http://localhost:8080/api/v1/clientes \ -H "Content-Type: application/json" \ -d '{ "id": 1, "dni": "12345678", "nombreCompleto": "María García López", "correo": "[email protected]", "telefono": "987654321" }'