Multiple records / Bulk POST inserts

瀏覽次數:4 次
跳到第一則未讀訊息

Marco Lazzeri

未讀,
2009年8月31日 上午9:27:292009/8/31
收件者: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

未讀,
2009年8月31日 上午9:46:452009/8/31
收件者: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
回覆所有人
回覆作者
轉寄
0 則新訊息