By the looks of what you are trying to send, you need to change the Grape restriction, because destinations  is an Array , not a Hash :   requires : destinations ,  type :  Array     You don't need the "destination" hash when sending the request:   {  destinations =>  [     {  name =>  'dest1' ,  other_attribute :  'value' ,  etc ...  },    {  name =>  'dest2' ,  other_attribute :  'value' ,  etc ...  },     {  name =>  'dest3' ,  other_attribute :  'value' ,  etc ...  }  ]}     This creates an Array of hashes.  In order to send this through POSTMAN, you'll need to modify that destinations  param your sending and add multiple lines in POSTMAN. Something like:   destinations [][ name ]                 'dest1'  destinations [][ other_attribute ]      'value1'  destinations [][ name ]                 'dest2'  destinations [][ other_attribute ]      'value2'...
 
Comments
Post a Comment