1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 19:28:07 +00:00
gns3-server/docs/api/examples/controller_get_projectsprojectidlinks.txt
2016-11-03 18:20:51 +01:00

50 lines
1.4 KiB
Plaintext

curl -i -X GET 'http://localhost:3080/v2/projects/ca14de30-087a-4994-bb54-b2b00e18d1ef/links'
GET /v2/projects/ca14de30-087a-4994-bb54-b2b00e18d1ef/links HTTP/1.1
HTTP/1.1 200
Content-Length: 1111
Content-Type: application/json
Date: Thu, 03 Nov 2016 17:20:01 GMT
Server: Python/3.5 GNS3/2.0.0dev4
X-Route: /v2/projects/{project_id}/links
[
{
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
"link_id": "398c9cb0-724e-4d56-a9b5-2b33831c8c39",
"link_type": "ethernet",
"nodes": [
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "0/3",
"x": -10,
"y": -10
},
"node_id": "f931da2a-abe7-4e8b-8b40-385fa091cb4d",
"port_number": 3
},
{
"adapter_number": 2,
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "2/4",
"x": -10,
"y": -10
},
"node_id": "3fcc232f-a6df-422c-800a-39ca356661d5",
"port_number": 4
}
],
"project_id": "ca14de30-087a-4994-bb54-b2b00e18d1ef"
}
]