def post(self): """Teilnahme erstellen""" adm = ProjectAdministration() proposal = Participation.from_dict(api.payload) if proposal is not None: c = adm.create_participation(proposal.get_module_id(), proposal.get_project_id(), proposal.get_student_id()) return c, 200 else: return '', 500
def post(self): """Anlegen eines neuen Participation-Objekts. """ adm = ProjectAdministration() p = Participation.from_dict(api.payload) if p is not None: pa = adm.create_participation(p.get_id(), p.get_creation_time(), p.get_project(), p.get_student()) return pa, 200 else: return '', 500