Exemple #1
0
 def delete(self, *args, **kwargs):
     deleted_project = self.project_interactors.set_params(
         **kwargs).execute()
     body = ProjectSerializer.serialize(deleted_project)
     status = StatusCodes.OK
     return body, status
Exemple #2
0
 def post(self, *args, **kwargs):
     project = self.project_interactors.set_params(**kwargs).execute()
     body = ProjectSerializer.serialize(project)
     status = StatusCodes.CREATED
     return body, status