class GdsApi::PublishingApi

def content_item_url(base_path)

def content_item_url(base_path)
  "#{endpoint}/content#{base_path}"
end

def destroy_intent(base_path)

def destroy_intent(base_path)
  delete_json(intent_url(base_path))
end

def draft_content_item_url(base_path)

def draft_content_item_url(base_path)
  "#{endpoint}/draft-content#{base_path}"
end

def intent_url(base_path)

def intent_url(base_path)
  "#{endpoint}/publish-intent#{base_path}"
end

def put_content_item(base_path, payload)

def put_content_item(base_path, payload)
  put_json!(content_item_url(base_path), payload)
end

def put_draft_content_item(base_path, payload)

def put_draft_content_item(base_path, payload)
  put_json!(draft_content_item_url(base_path), payload)
end

def put_intent(base_path, payload)

def put_intent(base_path, payload)
  put_json!(intent_url(base_path), payload)
end