Multiple records / Bulk POST inserts

4 views
Skip to first unread message

Marco Lazzeri

unread,
Aug 31, 2009, 9:27:29 AM8/31/09
to CloudKit
Hi,

Is there any support for multiple records insertion with a single POST
request?

I'm thinking about something like:

$ curl http://localhost/notes -X POST -d '[ { "name" : "foo" },
{ "name" : "bar" } ]'

Where { "name" : "foo" } and { "name" : "bar" } are 2 different
documents being inserted.


- Marco

Jon Crosby

unread,
Aug 31, 2009, 9:46:45 AM8/31/09
to clou...@googlegroups.com
Bulk inserts are not supported in the current API, but they are on the list of planned features in the TODO list at the root of the project repo. Given the current state of the code, bulk inserts should be fairly straightforward to implement. Result bodies from the bulk operations would look like the bulk requests to _resolved URIs.

-Jon
Reply all
Reply to author
Forward
0 new messages