diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-06-19 12:23:59 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-06-19 12:23:59 +0200 |
commit | dbdfc106bfc599ba86c4870b342e684eaf0b2476 (patch) | |
tree | 13ac14b82d2b9cb56ae343b656fe56e4fd68b4b0 /ogcli/objects/og_client.py | |
parent | d7b54d08bbcd55029daf57f726784950276accb3 (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.py | 6 |
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()) |