def post(self): """Project Typen erstellen""" adm = ProjectAdministration() proposal = Project_type.from_dict(api.payload) if proposal is not None: c = adm.create_project_type(proposal.get_name(), proposal.get_ects(), proposal.get_sws()) return c, 200 else: return '', 500
def post(self): """Anlegen eines neuen ProjectTypes-Objekts. """ adm = ProjectAdministration() prot = ProjectType.from_dict(api.payload) if prot is not None: r = adm.create_project_type(prot.get_creation_time(), prot.get_name(), prot.get_sws(), prot.get_ects()) return r, 200 else: return '', 500