Creating multiple objects at a time, the RESTful way?

Most resources seem to be singletons – that is, the “create” action
only creates one object. However, for a log parsing application I am
writing, I would like to issue one large HTTP request to generate
multiple objects at a time. This is purely for efficiency – I may be
creating 100,000 items for each log I process, and I would rather do
100 posts of 1000 items than 100,000 of them.

Does anyone have suggestions or sample code for this sort of thing, in
a RESTful way? I know I can write a custom action (create_multiple or
something) but if there is a convention, I’d rather use it.

Thanks!

–Michael

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs