def post_client(): client = Client.json_parse(request.json) client = ClientService.create_client(client) return jsonify(client.json()), 201
def test_01_insert(self): self.assertTrue(ClientService.create_client(ClientServiceTest.client))
def create_client(): ClientService.create_client(Client.deserialize(request.json)) logger.log(request.json, logging.INFO) return "Success!", 201