mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
26 lines
811 B
Plaintext
26 lines
811 B
Plaintext
curl -i -X PUT 'http://localhost:3080/v2/projects/730a3525-db50-4a6a-ac7b-c724c3eed9e8/drawings/eb4a10ff-3cd1-47dd-b95b-1792d2b08f5c' -d '{"x": 42}'
|
|
|
|
PUT /v2/projects/730a3525-db50-4a6a-ac7b-c724c3eed9e8/drawings/eb4a10ff-3cd1-47dd-b95b-1792d2b08f5c HTTP/1.1
|
|
{
|
|
"x": 42
|
|
}
|
|
|
|
|
|
HTTP/1.1 201
|
|
Connection: close
|
|
Content-Length: 323
|
|
Content-Type: application/json
|
|
Date: Mon, 08 Jan 2018 08:16:35 GMT
|
|
Server: Python/3.6 GNS3/2.1.2dev1
|
|
X-Route: /v2/projects/{project_id}/drawings/{drawing_id}
|
|
|
|
{
|
|
"drawing_id": "eb4a10ff-3cd1-47dd-b95b-1792d2b08f5c",
|
|
"project_id": "730a3525-db50-4a6a-ac7b-c724c3eed9e8",
|
|
"rotation": 0,
|
|
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
|
"x": 42,
|
|
"y": 20,
|
|
"z": 0
|
|
}
|