adding delete resources for collections

parent 1be961ba
......@@ -60,6 +60,18 @@ module Dspace
handler(200, 201) { |response| true }
end
action :delete, 'DELETE /rest/communities/:id' do
handler(200, 201, 204) { |response| true }
end
action :delete_collection, 'DELETE /rest/communities/:id/collections/:collection_id' do
handler(200, 201, 204) { |response| true }
end
action :delete_subcommunity, 'DELETE /rest/communities/:id/communities/:subcommunity_id' do
handler(200, 201, 204) { |response| true }
end
end
end
end
......
......@@ -47,8 +47,6 @@ RSpec.describe Dspace::Resources::CommunityResource, resource_kit: true do
end
end
it 'update a community' do
expect(resource).to have_action(:update).that_handles(200,201).at_path('/rest/communities/:id').with_verb(:put) do |handled|
expect(handled).to eq(true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment