/** * this endpoint delete a specific interview. * @param $id string the ID of the interview to delete * @param $param string[] * @return void */ public static function delete($id, $param) { if (isset($param["withApplicant"]) && $param["withApplicant"]) { ApiRequest::delete("/api/v1/interview/" . $id . "?withApplicant=" . $param["withApplicant"]); } else { ApiRequest::delete("/api/v1/interview/" . $id); } }
/** * this endpoint delete a specific applicant. * @param $id string the ID of the applicant to delete * @return bool */ public static function delete($id) { $result = ApiRequest::delete("/api/v1/applicant/" . $id); return $result != null; }
public function testDeleteRequest() { $this->assertNotNull(ApiRequestTest::$interviewId); $res = ApiRequest::delete("/api/v1/interview/" . ApiRequestTest::$interviewId); $this->assertNull($res); }