|
|
@ -186,8 +186,11 @@ class Archive |
|
|
*/ |
|
|
*/ |
|
|
public function createArchiveWithResource ($archiveId, $originatorOwnerOrgRegNumber, $originatorOrgRegNumber, $content, $file_name, $hash, $hashAlgorithm) |
|
|
public function createArchiveWithResource ($archiveId, $originatorOwnerOrgRegNumber, $originatorOrgRegNumber, $content, $file_name, $hash, $hashAlgorithm) |
|
|
{ |
|
|
{ |
|
|
$ws_route = " post /digitalSafe/digitalSafe/$originatorOwnerOrgRegNumber/$originatorOrgRegNumber"; |
|
|
|
|
|
$url_params = []; |
|
|
|
|
|
|
|
|
$ws_route = " post /digitalSafe/digitalSafe/{originatorOwnerOrgRegNumber}/{originatorOrgRegNumber}"; |
|
|
|
|
|
$url_params = [ |
|
|
|
|
|
"originatorOwnerOrgRegNumber" => $originatorOwnerOrgRegNumber, |
|
|
|
|
|
"originatorOrgRegNumber" => $originatorOrgRegNumber |
|
|
|
|
|
]; |
|
|
$query_params = []; |
|
|
$query_params = []; |
|
|
$body_params = [ |
|
|
$body_params = [ |
|
|
"originatorArchiveId" => $archiveId, |
|
|
"originatorArchiveId" => $archiveId, |
|
|
@ -296,5 +299,4 @@ class Archive |
|
|
list($headers, $body) = $this->sam_api->query($ws_route, $url_params, $query_params, $body_params); |
|
|
list($headers, $body) = $this->sam_api->query($ws_route, $url_params, $query_params, $body_params); |
|
|
return $body; |
|
|
return $body; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |