azure-devops-python-api icon indicating copy to clipboard operation
azure-devops-python-api copied to clipboard

how to access a wiki page in a project

Open anuragchauhan1989 opened this issue 5 years ago • 1 comments

Need to access the attachment on the wiki page in a project. Is there any api for that?

image

anuragchauhan1989 avatar Sep 29 '21 10:09 anuragchauhan1989

I know its been more than a year but I managed to download all attachments from wiki by:

  1. Using connection.client.get_all_wikis() to get all wikis
  2. Get ID, Mapped_path and project_id for your wiki
  3. Use git_client.get_item_zip() to download wiki-repo and there you have your attachments

Something like this: response = git_client.get_item_zip( repository_id=items['id'], path=items['mapped_path'], project=items['project_id'], download=True )

Or at least I managed to download the .attachment folder :) /Victor

vicrem avatar Oct 04 '22 07:10 vicrem