This commit is contained in:
Stefan Puraner
2016-05-12 10:21:07 +02:00
3 changed files with 28 additions and 0 deletions
@@ -27,6 +27,22 @@ class Studiengang2 extends APIv1_Controller
$this->StudiengangModel->setUID($this->_getUID());
}
public function getStudiengang()
{
$studiengang_kz = $this->get('studiengang_kz');
if(isset($studiengang_kz))
{
$result = $this->StudiengangModel->load($studiengang_kz);
$this->response($result, REST_Controller::HTTP_OK);
}
else
{
$this->response();
}
}
public function getAllForBewerbung()
{
$this->response($this->StudiengangModel->getAllForBewerbung(), REST_Controller::HTTP_OK);