summaryrefslogtreecommitdiffstats
path: root/app/common/services
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-07-18 14:52:02 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-09-05 15:33:02 -0500
commitc74d434c35d721693ea16fc61fe2ad8d8a2d7b23 (patch)
tree53ada9705aabda612dec385cdaeb8f220ad3b903 /app/common/services
parent7de38662b1bcc24a3d2c597430952ff091cd2c21 (diff)
downloadphosphor-webui-c74d434c35d721693ea16fc61fe2ad8d8a2d7b23.tar.gz
phosphor-webui-c74d434c35d721693ea16fc61fe2ad8d8a2d7b23.zip
Add Time Owner and Time Mode
Added the Time Owner and the Time Mode Created a new function that enumerates /xyz/openbmc_project/time. Tested: See Time Mode and Time Owner Change-Id: I3d1788bdb87b99028000d13c868b4a0cbfbc3006 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/common/services')
-rw-r--r--app/common/services/api-utils.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 042dde4..284d54e 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -1169,6 +1169,21 @@ window.angular && (function(angular) {
return response.data;
});
},
+ getTime: function() {
+ return $http({
+ method: 'GET',
+ url: DataService.getHost() +
+ '/xyz/openbmc_project/time/enumerate',
+ headers: {
+ 'Accept': 'application/json',
+ 'Content-Type': 'application/json'
+ },
+ withCredentials: true
+ })
+ .then(function(response) {
+ return response.data;
+ });
+ },
getHardwares: function(callback) {
$http({
method: 'GET',
OpenPOWER on IntegriCloud