fix photo upload endpoint and align CommessaWeb field names with API docs

- CommessaWeb POST: rename fields per documentation — CustomerManager, PriceMultiplier, CertestObjectMasterData, CertestServiceMasterData, CustomerSupplier
- Move DeliveryRequest (ConsegnaRichiesta) from CommessaWeb to Campione
- Photo upload: change endpoint from AllegatoCommessaWeb to Campione({id})/UploadCampioneFile, upload to all campioni
- postMultipart(): remove commessaId param, send only file field
This commit is contained in:
2026-02-28 02:07:40 +03:00
parent 1fed113c5c
commit c7416ba4a9
3 changed files with 82 additions and 72 deletions
@@ -126,9 +126,9 @@ class VisualLimsApiClientMock
return [];
}
public function postMultipart(string $endpoint, string $filePath, string $fileName, int $commessaId): array
public function postMultipart(string $endpoint, string $filePath, string $fileName): array
{
error_log("[SIMULATE] POST multipart {$endpoint} file={$fileName} commessaId={$commessaId}");
error_log("[SIMULATE] POST multipart {$endpoint} file={$fileName}");
return ['simulated' => true, 'file' => $fileName];
}