def post(self): data = api.payload try: result = {"returnCode": 0, "message": hello(**data)} return result except Exception as e: raise AppError(e)
def post(self): data = api.payload try: api.workder.log_something(hello(**data)) result = {"returnCode": 0, "message": hello(**data)} return result except Exception as e: raise AppError(e)
def post(self): data = api.payload current_app.logger.debug(data) try: result = {"returnCode": 0, "message": hello(**data)} return result except Exception as e: raise AppError(e)
def post(self): data = api.payload try: return do_something(data) except Exception as e: raise AppError(e)
def post(self): data = parser.parse_args() try: return do_something(data) except Exception as e: raise AppError(e)