This is actually a nasty usability issue and makes the api look unprofessional.
Create Volume Request: JSON
{ "volume": { "display_name": "vol-001", "display_description": "Another volume.", "size": 30, "volume_type": "289da7f8-6440-407c-9fb4-7db01ec49164", "metadata": {"contents": "junk"}, "availability_zone": "us-east1" } }
Create Volume Response: JSON { "volume": { "id": "521752a6-acf6-4b2d-bc7a-119f9148cd8c", "displayName": "vol-001", "displayDescription": "Another volume.", "size": 30, "volumeType": "289da7f8-6440-407c-9fb4-7db01ec49164", "metadata": {"contents": "junk"}, "availabilityZone": "us-east1", "snapshotId": null, "attachments": [], "createdAt": "2012-02-14T20:53:07Z" } }
It would be great if we could switch it but still support the old syntax for anyone who happens to be using it. But we should just publish the new syntax in the api docs. Supporting the old syntax will allow us to get through the merge gate as well.
This is actually a nasty usability issue and makes the api look unprofessional.
Create Volume Request: JSON
{
"display_ name": "vol-001",
"display_ description" : "Another volume.",
"volume_ type": "289da7f8- 6440-407c- 9fb4-7db01ec491 64",
"availability_ zone": "us-east1"
"volume": {
"size": 30,
"metadata": {"contents": "junk"},
}
}
Create Volume Response: JSON acf6-4b2d- bc7a-119f9148cd 8c",
"displayName" : "vol-001",
"displayDescri ption": "Another volume.",
"volumeType" : "289da7f8- 6440-407c- 9fb4-7db01ec491 64",
"availabilityZ one": "us-east1",
"snapshotId" : null,
"attachments" : [],
"createdAt" : "2012-02- 14T20:53: 07Z"
{
"volume": {
"id": "521752a6-
"size": 30,
"metadata": {"contents": "junk"},
}
}
It would be great if we could switch it but still support the old syntax for anyone who happens to be using it. But we should just publish the new syntax in the api docs. Supporting the old syntax will allow us to get through the merge gate as well.