Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- post "/retailers/#{retailer_id}/orders",
- {:order => {:retailer_id => retailer_id, :product_ids_with_quantities => [[2, 1],[2, 1]]}}.to_json,
- {:Authorization => token}
- 打印params的话
- {"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