title: Sending multiple objects in HTTP Request (Spring)
body: <p>I'm currently "migrating" from SOAP to REST services. (legacy code)</p>
  
  <p>There are several methods that send objects in the request, the objects vary in type and number, I'd like to do something like this.</p>
  
  <pre><code>public long getRelationship(@RequestBody RelationshipDirection relationshipDirection,
  @RequestBody List&lt;long&gt; ids, @RequestBody BigInteger skipCount){
      /*do something*/
  }
  </code></pre>
  
  <p>And then there is another method that needs just 2 objects, and one is 'Extension' type.</p>
  
  <p>From similar questions I know that I need a <strong>wrapper object</strong>, but I would need one for each possible combination of parameter number and types, so my question here is: </p>
  
  <p><em>Is there another solution for this?</em> , something like a "Generic container"?</p>