Batch insert in Spring Data REST -


I'm posting (insert) one unit enabled at once I want to post a collection of entities in an API call.

CrudRepository is

  & lt; S. Expanded T & gt; Iterable & LT; S & gt; To save (iterable & lt; S & gt; entities);  

How to call above Spring data from REST method? Already tried to post several organizations in the form of arrays, which did not work.

Does the provision of batch be a violation of the Hates regime? If not, spring data provides any default way of doing this to REST.


Comments