Discrepancy in the docs about HTTP verb used to start a chuncked upload
Per REST API docs:
POST is used to create an upload
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'
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.
Please register to edit this issue