Project

General

Profile

« Previous | Next » 

Revision c66621c5

Added by Brad Buckingham about 10 years ago

fixes #4892 - content view filters & rules api - return object on DELETE

When a content view filter or rule is deleted with the API, return
the object that is being deleted.

This is correct behavior according to the API documentation and
is assumed behavior for the UI to properly update lists during
a deletion.

View differences:

app/controllers/katello/api/v2/content_view_filters_controller.rb
param :id, :identifier, :desc => "filter identifier", :required => true
def destroy
@filter.destroy
respond :resource => @filter
respond_for_show :resource => @filter
end
api :GET, "/content_views/:content_view_id/filters/:id/available_errata",

Also available in: Unified diff