Ejemplo n.º 1
0
 def post(self):
     data = api.payload
     try:
         result = {"returnCode": 0, "message": hello(**data)}
         return result
     except Exception as e:
         raise AppError(e)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 def post(self):
     data = api.payload
     try:
         return do_something(data)
     except Exception as e:
         raise AppError(e)
Ejemplo n.º 5
0
 def post(self):
     data = parser.parse_args()
     try:
         return do_something(data)
     except Exception as e:
         raise AppError(e)