def partial_update(self, guid, body, code=200): url = os.path.join(self.url, guid, "partial") response, status = Atlas.http_put_post_request(url=url, data=json.dumps(body), method='PUT') assert status == code return response
def associate_term_to_entities(self, guid, entity_guids_list, code=204): url = os.path.join(self.base_url, 'api/atlas/v2/glossary/terms', guid, "assignedEntities") body = list() for each in entity_guids_list: body.append({"guid": each}) _response, status = Atlas.http_put_post_request(url=url, data=json.dumps(body)) assert status == code
def create_categories(self, body, code=200): url = os.path.join(self.base_url, 'api/atlas/v2/glossary/categories') response, status = Atlas.http_put_post_request(url=url, data=json.dumps(body)) assert status == code return response
def create(self, body, code=200): response, status = Atlas.http_put_post_request(url=self.url, data=json.dumps(body)) assert status == code return response