2015-01-20 14:35:46 +00:00
|
|
|
curl -i -X POST 'http://localhost:8000/project' -d '{"location": "/tmp", "uuid": "00010203-0405-0607-0809-0a0b0c0d0e0f"}'
|
2015-01-19 15:23:41 +00:00
|
|
|
|
|
|
|
POST /project HTTP/1.1
|
|
|
|
{
|
2015-01-20 14:35:46 +00:00
|
|
|
"location": "/tmp",
|
|
|
|
"uuid": "00010203-0405-0607-0809-0a0b0c0d0e0f"
|
2015-01-19 15:23:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200
|
|
|
|
CONNECTION: close
|
2015-01-23 15:19:17 +00:00
|
|
|
CONTENT-LENGTH: 102
|
2015-01-19 15:23:41 +00:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
|
|
|
SERVER: Python/3.4 aiohttp/0.13.1
|
|
|
|
X-ROUTE: /project
|
|
|
|
|
|
|
|
{
|
2015-01-20 14:35:46 +00:00
|
|
|
"location": "/tmp",
|
2015-01-23 15:19:17 +00:00
|
|
|
"temporary": false,
|
2015-01-20 14:35:46 +00:00
|
|
|
"uuid": "00010203-0405-0607-0809-0a0b0c0d0e0f"
|
2015-01-19 15:23:41 +00:00
|
|
|
}
|