diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-06-19 13:10:14 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-06-19 13:10:14 +0200 |
commit | be18d619e69755ee836175d414dada7b6b3cf13e (patch) | |
tree | 41b2de6cb7054cecafa881ddaa41e34e8d04d00b /ogcli/objects/og_scopes.py | |
parent | 36c61158555b6a59b28fa1d3c07f15adddffabc9 (diff) |
Add list scopes command
This is consistent with HTTP GET /scopes
Diffstat (limited to 'ogcli/objects/og_scopes.py')
-rw-r--r-- | ogcli/objects/og_scopes.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcli/objects/og_scopes.py b/ogcli/objects/og_scopes.py new file mode 100644 index 0000000..0bf3ca8 --- /dev/null +++ b/ogcli/objects/og_scopes.py @@ -0,0 +1,6 @@ +class OgScope(): + + @staticmethod + def list_scopes(rest): + r = rest.get('/scopes') + print(r.json()) |