title: How to post a list to Spring Data Rest?
body: <p>I followed <a href="http://spring.io/guides/gs/accessing-data-rest/" rel="noreferrer">this example</a>, which allows to post a unique <code>Person</code> object. I want a REST service where I can post a collection of <code>Person</code> at once, e.g. a list/any collection named <code>Team</code> with numerous <code>Person</code> objects in just one call.</p>
  
  <p>I mean, my question is not exactly about the <code>OneToMany</code> relationship, where you send each person in a REST request. This topic is <a href="https://stackoverflow.com/questions/25311978/posting-a-onetomany-sub-resource-association-in-spring-data-rest">well answered</a>.</p>
  
  <p>I want to send a collection of <code>Person</code> objects taking advantage of <code>@RepositoryRestResource</code> or another feature from Spring Data Rest. Is this possible with Spring Data Rest or should I workaround by creating a controller, receive the list and parse the <code>Team</code> list to insert each <code>Person</code>?</p>
  
  <p>I found <a href="https://jira.spring.io/browse/DATAREST-334" rel="noreferrer">this feature request</a>, which seems to answer that nowadays Spring Rest Data is missing what I am looking for, but I am not sure.</p>
  
  <p>In my business requirement, application A will post a list of orders to application B and I have to save it in database for future processing, so, after reading about Spring Data Rest and making some samples, I found  its clean architecture amazing and very suitable for my requirement except for the fact that I didn't figure out how to post a list.</p>