summaryrefslogtreecommitdiff
path: root/ick2/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/client.py')
-rw-r--r--ick2/client.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/ick2/client.py b/ick2/client.py
index cda3649..ec2a113 100644
--- a/ick2/client.py
+++ b/ick2/client.py
@@ -154,7 +154,7 @@ class ControllerClient:
return self._api.get_dict(url)
def get_artifact_store_url(self):
- version = self.version()
+ version = self.get_version()
url = version.get('artifact_store')
logging.info('Artifact store URL: %r', url)
return url
@@ -206,6 +206,14 @@ class ControllerClient:
body = json.dumps(work)
self._api.post(url, headers=headers, body=body)
+ def show(self, path): # pragma: no cover
+ url = self.url(path)
+ return self._api.get_dict(url)
+
+ def create(self, path, obj): # pragma: no cover
+ url = self.url(path)
+ return self._api.post(url, body=obj)
+
class AuthClient: