Add an individual artifact file download endpoint to the API
Description
Per https://gitlab.com/gitlab-org/gitlab-ce/issues/34102#note_38761273 and https://gitlab.com/gitlab-org/gitlab-pages/issues/78 we need an endpoint to pull a single file from the artifacts.zip archive.
Proposal
e.g., GET /api/v4/projects/:id/jobs/:job_id/artifacts/:path
This needs to provide public artifacts to unauthenticated requests. We should probably change the API endpoint that returns the whole archive as well, for consistency.
Links / references
Documentation blurb
Overview
What is it? Why should someone use this feature? What is the underlying (business) problem? How do you use this feature?
Use cases
Who is this for? Provide one or more use cases.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml