summaryrefslogtreecommitdiffstats
path: root/ogcli/objects/og_client.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-06-19 12:23:59 +0200
committerRoberto Hueso Gómez <rhueso@soleta.eu>2020-06-19 12:23:59 +0200
commitdbdfc106bfc599ba86c4870b342e684eaf0b2476 (patch)
tree13ac14b82d2b9cb56ae343b656fe56e4fd68b4b0 /ogcli/objects/og_client.py
parentd7b54d08bbcd55029daf57f726784950276accb3 (diff)
Rewrite basic structure
This commit: - Adds OgREST class as a wrapper for HTTP REST requests. - Adds objects folder which will contain available functions for each object in the OpenGnsys ecosystem (e.g. client, image, etc.).
Diffstat (limited to 'ogcli/objects/og_client.py')
-rw-r--r--ogcli/objects/og_client.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcli/objects/og_client.py b/ogcli/objects/og_client.py
new file mode 100644
index 0000000..ca91036
--- /dev/null
+++ b/ogcli/objects/og_client.py
@@ -0,0 +1,6 @@
+class OgClient():
+
+ @staticmethod
+ def list_clients(rest):
+ r = rest.get('/clients')
+ print(r.json())