Closed gtzanet closed 6 years ago
Dear Diannis,
It is on the list of things to do.
Thank you for asking for it
Best regards José Miguel
2018-04-23 18:03 GMT+02:00 Giannis Tzanettis notifications@github.com:
A method 'get_project()' for downloading a whole project (in zip format or similar) would be really useful, if not necessary, for tools like the PT or the DM. Downloading all the files one by one would be impossible since there is no analytical review of the contents of the project, and it would also be inefficient.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PHANTOM-Platform/Repository/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AItYXyNBRfqyC0xtxD5aXaFkJLhw3IC-ks5trftFgaJpZM4TgLd1 .
Dear Jose,
I have implemented a java class which downloads the project and unzips it into a local version of the Repository. Should I upload it on the github?
Giannis
Good !!!
thank you
where you put in the svn?
2018-05-25 11:16 GMT+02:00 Giannis Tzanettis notifications@github.com:
Dear Jose,
I have implemented a java class which downloads the project and unzips it into a local version of the Repository. Should I upload it on the github?
Giannis
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PHANTOM-Platform/Repository/issues/3#issuecomment-391993524, or mute the thread https://github.com/notifications/unsubscribe-auth/AItYXwcemXM4p_B2GtjhxdwA8GF3v-Xdks5t18vtgaJpZM4TgLd1 .
I just uploaded it, it's in the "Repository" folder.
added functionalities, already tested.
============== IN THE VESION WITHOUT INTEGRATION WITH THE SECURITY SERVER ====
FIRST EXAMPLE: DOWNLOADING ALL FILES INCLUDED IN A PARTICULAR PATH IN THE PROJECT: curl -s -H "Content-Type: multipart/form-data" -XGET http://${server}:${repository_port}/downloadzip?project=phantom_tools_on_HPC\&source=user\&filepath=mypath --output demo1.zip;
SECOND EXAMPLE: DOWNLOADING ALL FILES IN A PROJECT curl -s -H "Content-Type: multipart/form-data" -XGET http://${server}:${repository_port}/downloadzip?project=phantom_tools_on_HPC --output demo2.zip;
================= IN THE VERSION INTEGRATED WITH THE SECURITY SERVER ====
FIRST EXAMPLE: DOWNLOADING ALL FILES INCLUDED IN A PARTICULAR PATH IN THE PROJECT: curl -s -H "Authorization: OAuth ${mytoken}" -H "Content-Type: multipart/form-data" -XGET http://${server}:${repository_port}/downloadzip?project=phantom_tools_on_HPC\&source=user\&filepath=mypath --output demo1.zip;
SECOND EXAMPLE: DOWNLOADING ALL FILES IN A PROJECT curl -s -H "Authorization: OAuth ${mytoken}" -H "Content-Type: multipart/form-data" -XGET http://${server}:${repository_port}/downloadzip?project=phantom_tools_on_HPC --output demo2.zip;
A method 'get_project()' for downloading a whole project (in zip format or similar) would be really useful, if not necessary, for tools like the PT or the DM. Downloading all the files one by one would be impossible since there is no analytical review of the contents of the project, and it would also be inefficient.