mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-30 01:14:34 +02:00
API V2
This commit is contained in:
200 files changed
+867
-625
No files matched your search
+2
-11
@@ -119,7 +119,7 @@ def http_controller(loop, http_server):
|
||||
Return an helper allowing you to call the server API without any prefix
|
||||
"""
|
||||
host, port = http_server
|
||||
return Query(loop, host=host, port=port, prefix="/controller", api_version=1)
|
||||
return Query(loop, host=host, port=port, prefix="/controller", api_version=2)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -128,16 +128,7 @@ def http_hypervisor(loop, http_server):
|
||||
Return an helper allowing you to call the hypervisor API via HTTP
|
||||
"""
|
||||
host, port = http_server
|
||||
return Query(loop, host=host, port=port, prefix="/hypervisor", api_version=1)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def http_api(loop, http_server):
|
||||
"""
|
||||
Return an helper allowing you to call the root API via HTTP
|
||||
"""
|
||||
host, port = http_server
|
||||
return Query(loop, host=host, port=port, api_version=1)
|
||||
return Query(loop, host=host, port=port, prefix="/hypervisor", api_version=2)
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
|
||||
Reference in new issue
Block a user