Project

Profile

Help

Issue #4760

Discrepancy in the docs about HTTP verb used to start a chuncked upload

Added by kersom over 1 year ago. Updated about 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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

Associated revisions

Revision 4e475119 View on GitHub
Added by dkliban@redhat.com over 1 year ago

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

History

#1 Updated by amacdona@redhat.com over 1 year ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 52

#2 Updated by dkliban@redhat.com over 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com

#3 Updated by dkliban@redhat.com over 1 year ago

  • Status changed from ASSIGNED to POST

#4 Updated by dkliban@redhat.com over 1 year ago

  • Status changed from POST to MODIFIED

#5 Updated by bmbouter about 1 year ago

  • Sprint/Milestone set to 3.0.0

#6 Updated by bmbouter about 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF