Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to download repo via react app using api?

DM
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 5, 2022

I want to download the repo as a zip file in react app using API.currently it giving CORS error.

3 answers

0 votes
Pramodh M
Community Champion
January 8, 2022

Hi @DM 

If you are referring to Pages, here's a thread

https://community.atlassian.com/t5/Confluence-questions/Best-approach-to-download-all-confluence-pages-in-a-space-and/qaq-p/1529389

If you are referring to the repo in Bitbucket, here's an API

https://community.atlassian.com/t5/Bitbucket-questions/How-to-download-repository-as-zip-file-using-the-API/qaq-p/862113

To mitigate CORS error, reduce using Access-Control-Allow-Origin parameter

Thanks,
Pramodh

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 2022

Could you explain the question more, please?  What has it got to do with Confluence?

What are you actually trying to achieve?

0 votes
Gonchik Tsymzhitov
Community Champion
January 5, 2022

Hi! 

is this related to the Confluence question?

Maybe the next thread will help you https://community.developer.atlassian.com/t/plugin-development-and-cors-problem/49002

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events