92,7 → 92,6 |
} |
|
/** |
* REST method for selecting |
* @param string $endpoint |
* @param array $json_in |
* @return array |
133,7 → 132,6 |
} |
|
/** |
* REST method for replacing (re-create) |
* @param string $endpoint |
* @param array $json_in |
* @return array |
143,8 → 141,6 |
$obj = OIDplusObject::parse($id); |
if (!$obj) throw new OIDplusException(_L('%1 action failed because object "%2" cannot be parsed!', 'PUT', $id), null, 400); |
|
// ATTENTION: Do *not* use $params=$json_in. We intentionally set $params to empty strings if the values do not exist in $json_in, |
// because PUT is for re-creating the whole object! |
$params = array(); |
$params['id'] = $id; |
$params['ra_email'] = $json_in['ra_email'] ?? ''; |
175,7 → 171,6 |
} |
|
/** |
* REST method for inserting (create) |
* @param string $endpoint |
* @param array $json_in |
* @return array |
201,7 → 196,6 |
} |
|
/** |
* REST method for modification |
* @param string $endpoint |
* @param array $json_in |
* @return array |
223,7 → 217,6 |
} |
|
/** |
* REST method for deleting |
* @param string $endpoint |
* @param array $json_in |
* @return array |