Changing POST /bridges/{bridgeId}/addChannel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux