예제 #1
0
 def post(self):
     response = {}
     user_resource = UserResource(request.json)
     try:
         response['user_list'] = user_resource.get_or_create()
     except Exception as error:
         print error
         pass
     return self.json_response(data=response)
예제 #2
0
 def post(self):
     response = {}
     user_resource = UserResource(request.json)
     try:
         response['user_list'] = user_resource.get_or_create()
     except Exception as error:
         print error
         pass
     return self.json_response(data=response)