I have been using RestClient to call the API, so here I am calling the DELETE method to delete one image:
@mposter_D = params[:mposter_D]
@mid_D = params[:mid_D]
req = Hash.new
req['mov'] = @mid_D
puts "....#{req.to_json}"
resource_pos = RestClient::Resource.new
Rails.application.config.sta_url+"/movi/pos/"+@mposter_D
response_pos = resource_pos.delete req.to_json, :content_type => :json
After calling this I am getting this:
ArgumentError (wrong number of arguments (2 for 1)): in the last line of code