Commit f7c6c17e authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

adding update and delete collection actions

parent d6fea959
......@@ -19,6 +19,15 @@ module Dspace
end
end
action :update, 'PUT /rest/collections/:id' do
body { |object| JSON.generate(object.to_h) }
handler(200, 201) { |response| true }
end
action :delete, 'DELETE /rest/collections/:id' do
handler(200, 201, 204) { |response| true }
end
end
end
end
......
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