diff --git a/brian_dashboard_manager/services/__init__.py b/brian_dashboard_manager/services/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/brian_dashboard_manager/services/api.py b/brian_dashboard_manager/services/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fbefac477b8e208250db42e7431ab28efdbb724e --- /dev/null +++ b/brian_dashboard_manager/services/api.py @@ -0,0 +1,11 @@ +import requests + + +def fetch_services(host): + """ + Fetches the current service state from the Reporting Provider host + """ + r = requests.get(f'{host}/scid/current') + r.raise_for_status() + services = r.json() + return services