Closed jasonkuhrt closed 10 years ago
Currently path-params are not customizable so we're stuck with device_id e.g.
device_id
output({device_id: 'foo', percent: 50})
We could use deviceId but wow that would suck. We could use id or device.
deviceId
id
device
I solved this type of problem before forsubscriber_id and publisher_id by using subscriber and publisher. Similarly I think I prefer device here:
subscriber_id
publisher_id
subscriber
publisher
output({device: 'foo', percent: 50})
If we had snake_case support in the community I wouldn't think twice about renaming these keys.
In lieu of #4 we should actually be supporting both camelCase or snake_case.
Resolved by #4 automatically.
Currently path-params are not customizable so we're stuck with
device_id
e.g.We could use
deviceId
but wow that would suck. We could useid
ordevice
.I solved this type of problem before for
subscriber_id
andpublisher_id
by usingsubscriber
andpublisher
. Similarly I think I preferdevice
here:If we had snake_case support in the community I wouldn't think twice about renaming these keys.