Actions
Issue #4760
closedDiscrepancy in the docs about HTTP verb used to start a chuncked upload
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
Sprint:
Sprint 52
Quarter:
Description
Per REST API docs:
POST is used to create an upload
post /pulp/api/v3/uploads/
See: https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/uploads_create
Per work flows documentation:
For large file uploads, Pulp supports uploading files in chunks. To begin uploading a file in chunks, an initial PUT request must be sent to the /pulp/api/v3/uploads endpoint:
http --form PUT :24817/pulp/api/v3/uploads/ file@./chunkaa 'Content-Range:bytes 0-6291455/32095676'
See: https://docs.pulpproject.org/en/3.0/nightly/workflows/upload-publish.html
Updated by amacdona@redhat.com over 5 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 52
Updated by dkliban@redhat.com over 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Updated by dkliban@redhat.com over 5 years ago
- Status changed from ASSIGNED to POST
Added by dkliban@redhat.com over 5 years ago
Updated by dkliban@redhat.com over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|4e475119fc1a98d3ac010c89334178ab5155bd34.
Updated by bmbouter over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Problem: OpenAPI schema for Uploads is wrong
Solution: add multiple serializers for Uploads
This patch introduces a ViewSet that uses SwaggerAutoSchema to describe the REST API provided by drf_chunked_uploads. This also required adding some new serializers. Since the post and put methods provided by drf_chunked_uploads are used to perform multiple actions, a custom Router was needed to route all the calls to the correct methods.
fixes: #4760 https://pulp.plan.io/issues/4760