From ef8dbb0fb89274b24159d0258e1daa3fe198b313 Mon Sep 17 00:00:00 2001 From: Jaewook Jung Date: Thu, 17 Nov 2016 19:40:17 +0900 Subject: [PATCH] modified uri for searching user on account server modified uri since the account server specification has been changed. Change-Id: I25771bca72803fe88a09631611194baf73a28181 Signed-off-by: Jaewook Jung Reviewed-on: https://gerrit.iotivity.org/gerrit/14455 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval Reviewed-by: Uze Choi Reviewed-by: Ashok Babu Channa --- resource/csdk/stack/include/octypes.h | 3 +++ resource/src/OCAccountManager.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/resource/csdk/stack/include/octypes.h b/resource/csdk/stack/include/octypes.h index c21c0d70c..522f91d83 100644 --- a/resource/csdk/stack/include/octypes.h +++ b/resource/csdk/stack/include/octypes.h @@ -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" diff --git a/resource/src/OCAccountManager.cpp b/resource/src/OCAccountManager.cpp index 669917f4f..a5b69d724 100644 --- a/resource/src/OCAccountManager.cpp +++ b/resource/src/OCAccountManager.cpp @@ -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 = {}; -- 2.34.1