Actions
Issue #5016
closedArtifact creation endpoint should accept json requests
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
There are two ways to create an artifact: from a file and from a chunked upload. The chunked upload request takes an upload id. However, it looks like it doesn't work when using json:
$ http POST :24817/pulp/api/v3/artifacts/ upload=$UPLOAD
{
"detail": "Unsupported media type \"application/json\" in request."
}
Actions
Allow json to be used to create artifacts from upload
I confirmed that the REST API docs display 'multipart/form-data'.
fixes #5016 https://pulp.plan.io/issues/5016