PHANTOM-Platform / Repository

PHANTOM Repository of Files with Metadata for integrated workflows
Apache License 2.0
2 stars 0 forks source link

Project directory download #3

Closed gtzanet closed 6 years ago

gtzanet commented 6 years ago

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.

jmmontanana commented 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 .

gtzanet commented 6 years ago

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

jmmontanana commented 6 years ago

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 .

gtzanet commented 6 years ago

I just uploaded it, it's in the "Repository" folder.

jmmontanana commented 6 years ago

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;