[asterisk-app-dev] Changing POST /bridges/{bridgeId}/addChannel
Joshua Colp
jcolp at digium.com
Tue Oct 15 12:07:54 CDT 2013
Paul Belanger wrote:
> Anybody have any objections with moving:
Yes.
> POST /bridges/{bridgeId}/addChannel
> POST /bridges/{bridgeId}/removeChannel
This operation does not add or remove a channel from a bridge. It adds
or removes multiple channels from a bridge. This can reduce POSTs quite
a bit depending on application usage.
> into:
>
> POST /channels/{channelId}/bridge
> DELETE /channels/{channelId}/bridge
>
> It feels like it makes more sense to control a channel within the
> /channels namespace. Specifically since you have to pass the channel
> id to the bridge.
If it was changed to the above we lose that functionality. That's the
thing that springs to mind. I'm slightly more inclined to like it on the
bridge because I find it describes things more, but *shrug*.
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-app-dev
mailing list