#1 2015-03-21 20:10:44

ws
Member
Registered: 2015-03-17
Posts: 19

Insert Multiple

I am passing this parameter : [{"id":8,"name":"aaaa"}, {"id":9,"name":"bbbb"}]

, but is only recorded the first record, how to record all.

URL : http://localhost:888/root/person

POST

CONTENT TYPE : application/json      -     [{"id":8,"name":"Chaves"}, {"id":9,"name":"Super"}]

I'm using httprequester to do my tests

Offline

#2 2015-03-22 08:57:03

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Insert Multiple

For multiple insert, you need to use a BATCH, not a single POST.

See http://synopse.info/files/html/Synopse% … ml#TITL_28

Offline

Board footer

Powered by FluxBB