Project

Profile

Help

Story #2843

Updated by amacdona@redhat.com over 7 years ago

For In order to afford an API user to create a file upload session, Pulp 3 needs to have the following: 

 - django model to represent a file upload (possibly called FileUpload) with 'id' and 'file_path' fields 
 - viewset that can handle CRD operations for FileUpload model 
 - serializer for the viewset 
 - API endpoint at /api/v3/uploads/ 
 - POST request to the /api/v3/uploads/ endpoint creates a FileUpload instance and returns a serialized FileUpload it's details the user 
 - GET request to the /api/v3/uploads/<upload id> returns serialized JSON representation of the FileUpload 
 - DELETE request to requesto the /api/v3/uploads/<upload id>/ deletes FileUpload from the database and the file at file_path

Back