1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 03:08:14 +00:00

Build doc

This commit is contained in:
Julien Duponchelle 2015-01-21 22:33:41 +01:00
parent 97cefa23fb
commit 0249a21409
9 changed files with 16 additions and 22 deletions

View File

@ -4,12 +4,10 @@ DELETE /vpcs/{uuid}/ports/{port_id}/nio HTTP/1.1
HTTP/1.1 200 HTTP/1.1 204
CONNECTION: close CONNECTION: close
CONTENT-LENGTH: 2 CONTENT-LENGTH: 0
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1 SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /vpcs/{uuid}/ports/{port_id}/nio X-ROUTE: /vpcs/{uuid}/ports/{port_id}/nio
{}

View File

@ -18,5 +18,5 @@ X-ROUTE: /vpcs/{uuid}
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"script_file": null, "script_file": null,
"startup_script": null, "startup_script": null,
"uuid": "c9e15d9f-cff3-402a-b9c9-57f4d008832f" "uuid": "a0ecc3ea-907f-4751-9415-9f6d5da4dc3a"
} }

View File

@ -8,7 +8,7 @@ POST /virtualbox HTTP/1.1
} }
HTTP/1.1 200 HTTP/1.1 201
CONNECTION: close CONNECTION: close
CONTENT-LENGTH: 133 CONTENT-LENGTH: 133
CONTENT-TYPE: application/json CONTENT-TYPE: application/json
@ -19,5 +19,5 @@ X-ROUTE: /virtualbox
{ {
"name": "VM1", "name": "VM1",
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"uuid": "3142e932-d316-40d7-bed3-7ef8e2d313b3" "uuid": "0f7b32bb-13e1-4c3f-8176-bbf277672b58"
} }

View File

@ -4,12 +4,10 @@ POST /virtualbox/{uuid}/start HTTP/1.1
{} {}
HTTP/1.1 200 HTTP/1.1 204
CONNECTION: close CONNECTION: close
CONTENT-LENGTH: 2 CONTENT-LENGTH: 0
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1 SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /virtualbox/{uuid}/start X-ROUTE: /virtualbox/{uuid}/start
{}

View File

@ -4,12 +4,10 @@ POST /virtualbox/{uuid}/stop HTTP/1.1
{} {}
HTTP/1.1 200 HTTP/1.1 204
CONNECTION: close CONNECTION: close
CONTENT-LENGTH: 2 CONTENT-LENGTH: 0
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1 SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /virtualbox/{uuid}/stop X-ROUTE: /virtualbox/{uuid}/stop
{}

View File

@ -7,7 +7,7 @@ POST /vpcs HTTP/1.1
} }
HTTP/1.1 200 HTTP/1.1 201
CONNECTION: close CONNECTION: close
CONTENT-LENGTH: 213 CONTENT-LENGTH: 213
CONTENT-TYPE: application/json CONTENT-TYPE: application/json
@ -21,5 +21,5 @@ X-ROUTE: /vpcs
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"script_file": null, "script_file": null,
"startup_script": null, "startup_script": null,
"uuid": "f5016337-fa62-4e82-95da-9f66f68e6e8f" "uuid": "f4f04818-610c-4e95-aa0e-6d29afa72fc7"
} }

View File

@ -9,7 +9,7 @@ POST /vpcs/{uuid}/ports/{port_id}/nio HTTP/1.1
} }
HTTP/1.1 200 HTTP/1.1 201
CONNECTION: close CONNECTION: close
CONTENT-LENGTH: 89 CONTENT-LENGTH: 89
CONTENT-TYPE: application/json CONTENT-TYPE: application/json

View File

@ -13,7 +13,7 @@ Parameters
Response status codes Response status codes
********************** **********************
- **200**: VPCS instance started - **200**: Success
- **404**: VPCS instance doesn't exist - **404**: VPCS instance doesn't exist
Sample session Sample session

View File

@ -9,8 +9,8 @@ Add a NIO to a VPCS
Parameters Parameters
********** **********
- **uuid**: VPCS instance UUID
- **port_id**: Id of the port where the nio should be add - **port_id**: Id of the port where the nio should be add
- **uuid**: VPCS instance UUID
Response status codes Response status codes
********************** **********************
@ -31,14 +31,14 @@ Remove a NIO from a VPCS
Parameters Parameters
********** **********
- **uuid**: VPCS instance UUID
- **port_id**: ID of the port where the nio should be removed - **port_id**: ID of the port where the nio should be removed
- **uuid**: VPCS instance UUID
Response status codes Response status codes
********************** **********************
- **200**: NIO deleted
- **400**: Invalid VPCS instance UUID - **400**: Invalid VPCS instance UUID
- **404**: VPCS instance doesn't exist - **404**: VPCS instance doesn't exist
- **204**: NIO deleted
Sample session Sample session
*************** ***************