mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
VCPS create NIO work and tested
This commit is contained in:
1 parent
aff834f565
commit
0cdc1c3042
7 files changed
+90
-187
No files matched your search
@@ -0,0 +1,22 @@
|
||||
curl -i -xPOST 'http://localhost:8000/vpcs/{vpcs_id}/ports/{port_id}/nio' -d '{"local_file": "/tmp/test", "remote_file": "/tmp/remote", "type": "nio_unix"}'
|
||||
|
||||
POST /vpcs/{vpcs_id}/ports/{port_id}/nio HTTP/1.1
|
||||
{
|
||||
"local_file": "/tmp/test",
|
||||
"remote_file": "/tmp/remote",
|
||||
"type": "nio_unix"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 404
|
||||
CONNECTION: close
|
||||
CONTENT-LENGTH: 59
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.4 aiohttp/0.13.1
|
||||
X-ROUTE: /vpcs/{vpcs_id}/ports/{port_id}/nio
|
||||
|
||||
{
|
||||
"message": "ID 42 doesn't exist",
|
||||
"status": 404
|
||||
}
|
||||
Reference in new issue
Block a user