Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. post "/retailers/#{retailer_id}/orders",
  2. {:order => {:retailer_id => retailer_id, :product_ids_with_quantities => [[2, 1],[2, 1]]}}.to_json,
  3. {:Authorization => token}
  4.  
  5.  
  6. 打印params的话
  7. {"order"=>{"retailer_id"=>"1", "product_ids_with_quantities"=>["2", "1", "2", "1"]}, "format"=>:json, "controller"=>"api/v1/orders", "action"=>"create", "retailer_id"=>"1"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement