Devices endpoint returns hyphenated field instead of snake_case
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
craton |
New
|
Undecided
|
Unassigned |
Bug Description
According to OpenStack API working group, API response fields are supposed to be snake_case, not hyphenated. We're currently returning a body that looks like:
{"hosts": [...], "network-devices": [...]} from GET /v1/devices. This needs to be changed to use "network_devices" as the field name instead.
Example of issue:
$ http http://
{
"devices": {
"hosts": [
{
],
},
...
{
],
}
],
{
],
},
...
{
],
}
]
},
"links": [
{
"href": "http://
"rel": "first"
},
{
"href": "http://
"rel": "prev"
},
{
"href": "http://
"rel": "self"
},
{
"href": "http://
"rel": "next"
}
]
}