コード例 #1
0
 def post_client():
     client = Client.json_parse(request.json)
     client = ClientService.create_client(client)
     return jsonify(client.json()), 201
コード例 #2
0
 def test_01_insert(self):
     self.assertTrue(ClientService.create_client(ClientServiceTest.client))
コード例 #3
0
 def create_client():
     ClientService.create_client(Client.deserialize(request.json))
     logger.log(request.json, logging.INFO)
     return "Success!", 201