Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull artifacts #22

Closed
cwdcwd opened this issue Nov 14, 2019 · 2 comments
Closed

pull artifacts #22

cwdcwd opened this issue Nov 14, 2019 · 2 comments
Milestone

Comments

@cwdcwd
Copy link
Contributor

cwdcwd commented Nov 14, 2019

  • download submission artifacts to the local via command fetch-artifacts
  • required submission Id param
  • pull all submission artifacts available to the user
@cwdcwd cwdcwd added this to the 1.0 release milestone Nov 14, 2019
@sharathkumaranbu
Copy link
Collaborator

We need to support the parameter --legacySubmissionId as well. submissionId and legacySubmissionId both are mutually exclusive.

If we have submissionId, we can directly access the submission artifacts at https://api.topcoder-dev.com/v5/submissions/:submissionId/artifacts and iterate through it to download the artifacts

If we have legacysubmissionId, we need to first get the submissionId from listing query like https://api.topcoder-dev.com/v5/submissions?legacySubmissionId=:legacySubmissionId and then follow the steps mentioned above.

Please refer to Submission API routes here

@sharathkumaranbu
Copy link
Collaborator

Implemented in c1a95e6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants