Skip to content

Commit

Permalink
Merge pull request #2 from davidban77/add-server-version
Browse files Browse the repository at this point in the history
adding get_version
  • Loading branch information
davidban77 authored Aug 1, 2019
2 parents ca23689 + 4a78ca6 commit b1d337c
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 b1d337c

Please sign in to comment.