From 9c172fe3c53ff6a9415b90353349e8ff21f8fb36 Mon Sep 17 00:00:00 2001
From: Sinisa Veseli <sveseli@aps.anl.gov>
Date: Tue, 14 Apr 2015 13:17:25 +0000
Subject: [PATCH] add method to get experiment api from api factory

---
 src/python/dm/ds_web_service/api/dsRestApiFactory.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/python/dm/ds_web_service/api/dsRestApiFactory.py b/src/python/dm/ds_web_service/api/dsRestApiFactory.py
index 07bc253d..c5e309b6 100755
--- a/src/python/dm/ds_web_service/api/dsRestApiFactory.py
+++ b/src/python/dm/ds_web_service/api/dsRestApiFactory.py
@@ -49,6 +49,13 @@ class DsRestApiFactory:
         api = AuthRestApi(username, password, host, port, protocol)
         return api
 
+    @classmethod
+    def getExperimentRestApi(cls):
+        from experimentRestApi import ExperimentRestApi
+        (username, password, host, port, protocol) = cls.__getConfiguration()
+        api = ExperimentRestApi(username, password, host, port, protocol)
+        return api
+
 ####################################################################
 # Testing
 
-- 
GitLab