Skip to content

Commit

Permalink
adding get_version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidban77 committed Aug 1, 2019
1 parent ca23689 commit 4a78ca6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gns3fy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ def get_projects(self):
"Returns the list of dictionaries of the projects on the server"
return self.http_call("get", url=f"{self.base_url}/projects").json()

def get_version(self):
"Returns the version information"
return self.http_call("get", url=f"{self.base_url}/version").json()


@dataclass(config=Config)
class Link:
Expand Down

0 comments on commit 4a78ca6

Please sign in to comment.