Change request method to POST on updating cred in OTM
authorjs126.lee <js126.lee@samsung.com>
Tue, 5 Jul 2016 06:10:18 +0000 (15:10 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Wed, 6 Jul 2016 06:06:41 +0000 (06:06 +0000)
commitc2673aea5ef37ec6f6711eeeb6ea2cdf5b370911
tree996180dedf5c8730f85d52e1a798f445d8e5bebd
parent9633b594ac497f854341c4964858f0f628f7c8b5
Change request method to POST on updating cred in OTM

the issue is that the /cred resource will actually exist, just will have no creds in it (empty array).
So this is really an UPDATE, to update the "creds" property of the oic.r.cred resource.
Once CTT has changed to POST on OTM, OC_REST_PUT case will be removed in CredEntityHandler

Patch1: apply patch
Patch2: Add comment

Change-Id: Iaa4b7d72e5855575be1f91b48997ee445941df03
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9161
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/provisioning/src/ownershiptransfermanager.c
resource/csdk/security/src/credresource.c