2015-01-26 10:40:48 +02:00
|
|
|
curl -i -X GET 'http://localhost:8000/interfaces'
|
|
|
|
|
|
|
|
GET /interfaces HTTP/1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200
|
2015-01-31 23:34:49 +02:00
|
|
|
CONNECTION: close
|
|
|
|
CONTENT-LENGTH: 364
|
2015-01-26 10:40:48 +02:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
2015-01-31 23:34:49 +02:00
|
|
|
SERVER: Python/3.4 aiohttp/0.13.1
|
2015-01-26 10:40:48 +02:00
|
|
|
X-ROUTE: /interfaces
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
2015-01-31 23:34:49 +02:00
|
|
|
"id": "lo",
|
|
|
|
"name": "lo"
|
2015-01-26 10:40:48 +02:00
|
|
|
},
|
|
|
|
{
|
2015-01-31 23:34:49 +02:00
|
|
|
"id": "eth0",
|
|
|
|
"name": "eth0"
|
2015-01-26 10:40:48 +02:00
|
|
|
},
|
|
|
|
{
|
2015-01-31 23:34:49 +02:00
|
|
|
"id": "wlan0",
|
|
|
|
"name": "wlan0"
|
2015-01-26 10:40:48 +02:00
|
|
|
},
|
|
|
|
{
|
2015-01-31 23:34:49 +02:00
|
|
|
"id": "vmnet1",
|
|
|
|
"name": "vmnet1"
|
2015-01-26 10:40:48 +02:00
|
|
|
},
|
|
|
|
{
|
2015-01-31 23:34:49 +02:00
|
|
|
"id": "vmnet8",
|
|
|
|
"name": "vmnet8"
|
2015-01-26 10:40:48 +02:00
|
|
|
},
|
|
|
|
{
|
2015-01-31 23:34:49 +02:00
|
|
|
"id": "vboxnet0",
|
|
|
|
"name": "vboxnet0"
|
2015-01-26 10:40:48 +02:00
|
|
|
}
|
|
|
|
]
|