Class: Katello::Api::V2::ContentUploadsController
- Inherits:
-
ApiController
- Object
- Api::V2::BaseController
- ApiController
- Katello::Api::V2::ContentUploadsController
show all
- Includes:
- Foreman::Controller::FilterParameters
- Defined in:
- app/controllers/katello/api/v2/content_uploads_controller.rb
Instance Method Summary
collapse
#full_result_response, #resource_class, #scoped_search
Methods included from Rendering
#respond_for_async, #respond_for_bulk_async, #respond_for_create, #respond_for_destroy, #respond_for_index, #respond_for_show, #respond_for_status, #respond_for_update, #respond_with_template, #respond_with_template_collection, #respond_with_template_resource, #try_specific_collection_template, #try_specific_resource_template
#api_version
Instance Method Details
#create ⇒ Object
11
12
13
|
# File 'app/controllers/katello/api/v2/content_uploads_controller.rb', line 11
def create
render :json => pulp_content.create_upload_request
end
|
#destroy ⇒ Object
28
29
30
31
|
# File 'app/controllers/katello/api/v2/content_uploads_controller.rb', line 28
def destroy
pulp_content.delete_upload_request(params[:id])
render :nothing => true
end
|
#update ⇒ Object
20
21
22
23
|
# File 'app/controllers/katello/api/v2/content_uploads_controller.rb', line 20
def update
pulp_content.upload_bits(params[:id], params[:offset], params[:content])
render :nothing => true
end
|