[asterisk-dev] [Code Review] 3278: ari: create bridges with specified unique id
Scott Griepentrog
reviewboard at asterisk.org
Mon Mar 3 09:22:40 CST 2014
> On March 1, 2014, 5:41 p.m., Paul Belanger wrote:
> > /branches/12/rest-api/api-docs/bridges.json, lines 50-56
> > <https://reviewboard.asterisk.org/r/3278/diff/1/?file=54950#file54950line50>
> >
> > After reading Matts comments, this still doesn't make sense.
> >
> > We are going to do POST /bridges and pass both bridge ID and name.
> >
> > But POST /bridges/{bridgeId} or PUT makes more sense. Since you even have the /bridges/{bridgeId} name space already, we should be just creating the bridge with the ID passed.
> >
> > POST /bridges should be use when you want asterisk to generate the UUID for channel, and POST /bridges/{bridgeId} when you want to override it.
>
> Matt Jordan wrote:
> That I agree with :-)
>
> POST /bridges/{bridgeId} should just create the bridge - specifying the bridgeId again in the query parameters does seem rather redundant.
>
>
So instead of:
POST /bridge
...
bridgeId: value (optional)
You want
POST /bridge
...
and:
POST /bridge/{bridgeid}
...
Where the two URI's have the same set of parameters. Each would end up being it's own separate entry in the documentation.
- Scott
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3278/#review11012
-----------------------------------------------------------
On Feb. 28, 2014, 11:39 a.m., Scott Griepentrog wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3278/
> -----------------------------------------------------------
>
> (Updated Feb. 28, 2014, 11:39 a.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Bugs: ASTERISK-23120
> https://issues.asterisk.org/jira/browse/ASTERISK-23120
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> This adds the ability to pass an assigned unique id to bridge creation, and enables ari bridge creation to pass that as a new parameter.
>
>
> Diffs
> -----
>
> /branches/12/rest-api/api-docs/bridges.json 409051
> /branches/12/res/res_stasis.c 409051
> /branches/12/res/res_ari_bridges.c 409051
> /branches/12/res/parking/parking_bridge.c 409051
> /branches/12/res/ari/resource_bridges.c 409051
> /branches/12/res/ari/resource_bridges.h 409051
> /branches/12/main/bridge_basic.c 409051
> /branches/12/main/bridge.c 409051
> /branches/12/include/asterisk/stasis_app.h 409051
> /branches/12/include/asterisk/bridge_internal.h 409051
> /branches/12/include/asterisk/bridge.h 409051
> /branches/12/apps/app_confbridge.c 409051
> /branches/12/apps/app_bridgewait.c 409051
> /branches/12/apps/app_agent_pool.c 409051
>
> Diff: https://reviewboard.asterisk.org/r/3278/diff/
>
>
> Testing
> -------
>
> Test https://reviewboard.asterisk.org/r/3277/ now includes a test for this feature, which passes.
>
>
> Thanks,
>
> Scott Griepentrog
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140303/fcac7f42/attachment.html>
More information about the asterisk-dev
mailing list