[IOT-3055] Fix to handle single element of batch 07/26007/12
authorkoushik.girijala <g.koushik@samsung.com>
Wed, 27 Jun 2018 09:52:27 +0000 (15:22 +0530)
committerAshok Babu Channa <ashok.channa@samsung.com>
Tue, 18 Sep 2018 06:27:39 +0000 (06:27 +0000)
commitd0427f56eeb6fe51ed4bd1e2a379396e0ac0acc0
treed905d0f9b7da70daebe95a7c6b81fa3386c7101a
parent36fe5fb1b342dcd6e259b2e446ef2250a9c96972
[IOT-3055] Fix to handle single element of batch

Response for collection with batch interface should be an array and not
object, This change will fix the case when the collection resource have
to send only one element in response, instead of sending it as array of
one element it sends as single object
As per OCF 2.0 spec , for single element case the response should be an
array even for single element

Change-Id: I29a2bafd1d163c4754cc3edcb77c15661399cbeb
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
resource/csdk/include/octypes.h
resource/csdk/stack/include/ocpayload.h
resource/csdk/stack/octbstack_product.def
resource/csdk/stack/samples/linux/SimpleClientServer/ocservercoll.cpp
resource/csdk/stack/src/ocpayload.c
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocserverrequest.c
resource/include/OCRepresentation.h
resource/src/OCRepresentation.cpp