Commit b5f9196c authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette

fix UpdateMedata of ItemResource

parent 1099f030
......@@ -64,7 +64,7 @@ module Dspace
end
action :update_metadata, 'PUT /rest/items/:id/metadata' do
body { |object| JSON.generate(object.to_h) }
body { |object| JSON.generate(Dspace::Builders::ModelBuilder.models2hash(object))}
handler(200, 201) { |response| true }
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