isRequestGet()) { try { $class = $this->getClassParameter(); $classes = $this->getResourceService()->getAllClasses($class); $this->returnSuccess([$classes]); } catch (common_Exception $e) { $this->returnFailure($e); } } else { $this->returnFailure(new common_exception_MethodNotAllowed(__METHOD__ . ' only accepts GET method')); } } }