def update_map(self, service_id, map_data): """ Map 수정 :param service_id: :param map_data: :return: """ url = self.CTRL_URL + "/service/" + service_id + "/map" response = CustomHTTPClient.patch_method(url, headers=self.HEADER, body=map_data) return self.confirm_status(response)
def update_service(self, template, service_id=None): """ 서비스 수정, service_id 가 None 이면 생성 :param template: :param service_id: :return: """ url = self.CTRL_URL + "/service" if service_id: url += "/" + service_id response = CustomHTTPClient.patch_method(url, headers=self.HEADER, body=template) else: response = CustomHTTPClient.post_method(url, headers=self.HEADER, body=template) return self.confirm_status(response)