Commit 56e497c9 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis Committed by Christos Stavrakakis

Add getServices method

parent ca6ba0b4
......@@ -149,6 +149,8 @@ class AstakosClient():
headers = {}
if body is None:
body = {}
if request_path[0] != '/':
request_path = "/" + request_path
# Build request's header and body
kwargs = {}
......@@ -259,6 +261,11 @@ class AstakosClient():
# XXX: check if exists
return name_dict.get(display_name)
# ----------------------------------
def getServices(self):
"""Return a list of dicts with the registered services"""
return self._callAstakos("dummy token", "/im/get_services")
# --------------------------------------------------------------------
# Private functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment