Reputation: 1948
I am able to POST (insert) one entity at a time. I want to POST a collection of entities at one api call.
CrudRepository has
<S extends T> Iterable<S> save(Iterable<S> entities);
How to call above method from Spring Data REST? Already tried posting multiple entities in the form of array, that didn't work.
Does providing batch insert feature violates HATEOAS priniciple? If no, does Spring Data REST provide any default way of doing this.
Upvotes: 10
Views: 3752