diff --git a/application/controllers/api/v1/crm/Akte.php b/application/controllers/api/v1/crm/Akte.php index cd52b97f5..9569cc68d 100644 --- a/application/controllers/api/v1/crm/Akte.php +++ b/application/controllers/api/v1/crm/Akte.php @@ -46,6 +46,28 @@ class Akte extends APIv1_Controller $this->response(); } } + + /** + * @return void + */ + public function getAkten() + { + $person_id = $this->get('person_id'); + $dokument_kurzbz = $this->get('dokument_kurzbz'); + $stg_kz = $this->get('stg_kz'); + $prestudent_id = $this->get('prestudent_id'); + + if (isset($person_id)) + { + $result = $this->AkteModel->getAkten($person_id, $dokument_kurzbz, $stg_kz, $prestudent_id); + + $this->response($result, REST_Controller::HTTP_OK); + } + else + { + $this->response(); + } + } /** * @return void diff --git a/application/controllers/api/v1/person/Kontakt.php b/application/controllers/api/v1/person/Kontakt.php index 9c08518b2..799061ce4 100644 --- a/application/controllers/api/v1/person/Kontakt.php +++ b/application/controllers/api/v1/person/Kontakt.php @@ -53,6 +53,22 @@ class Kontakt extends APIv1_Controller } } + public function getOnlyKontakt() + { + $kontakt_id = $this->get("kontakt_id"); + + if (isset($kontakt_id)) + { + $result = $this->KontaktModel->loadWhere(array('kontakt_id' => $kontakt_id)); + + $this->response($result, REST_Controller::HTTP_OK); + } + else + { + $this->response(); + } + } + public function getKontaktByPersonID() { $person_id = $this->get("person_id");