modified uri for searching user on account server
authorJaewook Jung <jw0213.jung@samsung.com>
Thu, 17 Nov 2016 10:40:17 +0000 (19:40 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 18 Nov 2016 08:40:09 +0000 (08:40 +0000)
modified uri since the account server specification has been changed.

Change-Id: I25771bca72803fe88a09631611194baf73a28181
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14455
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/include/octypes.h
resource/src/OCAccountManager.cpp

index c21c0d70cabc4cc058d3286745786257cfb7288a..522f91d831337732c1721b0d7eb2eedba0b54a16 100644 (file)
@@ -370,6 +370,9 @@ extern "C" {
 /** Account URI.*/
 #define OC_RSRVD_ACCOUNT_URI               "/oic/account"
 
+/** Account user URI.*/
+#define OC_RSRVD_ACCOUNT_USER_URI          "/oic/account/user"
+
 /** Account session URI.*/
 #define OC_RSRVD_ACCOUNT_SESSION_URI       "/oic/account/session"
 
index 669917f4f92b97d991d41745bbb0c1d3bca6477c..a5b69d72474174fff1881420e785f496105c2a81 100644 (file)
@@ -188,7 +188,7 @@ OCStackResult OCAccountManager::searchUser(const std::string& userUuid,
                                            const QueryParamsMap& queryParams,
                                            GetCallback cloudConnectHandler)
 {
-    std::string uri = m_host + OC_RSRVD_ACCOUNT_URI;
+    std::string uri = m_host + OC_RSRVD_ACCOUNT_USER_URI;
 
     QueryParamsMap fullQuery = {};