92,6 → 92,7 |
} |
|
/** |
* REST method for selecting |
* @param string $endpoint |
* @param array $json_in |
* @return array |
132,6 → 133,7 |
} |
|
/** |
* REST method for replacing (re-create) |
* @param string $endpoint |
* @param array $json_in |
* @return array |
141,6 → 143,8 |
$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'] ?? ''; |
171,6 → 175,7 |
} |
|
/** |
* REST method for inserting (create) |
* @param string $endpoint |
* @param array $json_in |
* @return array |
196,6 → 201,7 |
} |
|
/** |
* REST method for modification |
* @param string $endpoint |
* @param array $json_in |
* @return array |
217,6 → 223,7 |
} |
|
/** |
* REST method for deleting |
* @param string $endpoint |
* @param array $json_in |
* @return array |