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 c21c0d7..522f91d 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 669917f..a5b69d7 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 = {};