Project

Profile

Help

Issue #5016

closed

Artifact creation endpoint should accept json requests

Added by daviddavis almost 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
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."
}

Also available in: Atom PDF