25 lines
935 B
HTTP
25 lines
935 B
HTTP
@base = http://localhost:8080
|
|
@editor = REEMPLAZAR_TOKEN_FLOW_EDITOR
|
|
@flowId = REEMPLAZAR_UUID_CREDITO_V1
|
|
|
|
### Simulación pura de una transición, usando fixtures sintéticos
|
|
POST {{base}}/api/v1/admin/flows/{{flowId}}/simulate
|
|
Authorization: Bearer {{editor}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"state": "BURO_PENDIENTE",
|
|
"requestData": {
|
|
"client": "synthetic-client",
|
|
"consentimientoId": "synthetic-consent",
|
|
"cliente": {"found": true, "customerId": "synthetic-customer"}
|
|
},
|
|
"event": {"event": "VALIDAR_BURO", "data": {}},
|
|
"actor": {"subject": "synthetic-analyst", "businessScope": "demo", "roles": ["ANALISTA"]},
|
|
"results": {"buro": {"score": 71, "consultationId": "synthetic-consultation"}}
|
|
}
|
|
|
|
# Cambiar score a 70, 61 y 60: PASO_M, PASO_M y REVISION_MANUAL.
|
|
# score string o ausente es un error de contrato, sin ruta por defecto.
|
|
# El actor de fixture no sustituye el JWT del editor. No invoca buró real.
|