[asterisk-dev] [Code Review] 2940: ARI: User better nicknames for ARI operations
David Lee
reviewboard at asterisk.org
Thu Nov 7 15:09:23 CST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2940/
-----------------------------------------------------------
(Updated Nov. 7, 2013, 3:09 p.m.)
Status
------
This change has been marked as submitted.
Review request for Asterisk Developers.
Changes
-------
Committed in revision 402528
Repository: Asterisk
Description
-------
While working on building client libraries from the Swagger API, I
noticed a problem with the nicknames.
channel.deleteChannel()
channel.answerChannel()
channel.muteChannel()
Etc. We put the object name in the nickname (since we were generating C
code), but it makes OO generators redundant.
This patch makes the nicknames more OO friendly. This resulted in a lot
of name changing within the res_ari_*.so modules, but not much else.
There were a couple of other fixed I made in the process.
* When reversible operations (POST /hold, POST /unhold) were made more
RESTful (POST /hold, DELETE /unhold), the path for the second operation
was left in the API declaration. This worked, but really the two
operations should have been on the same API.
* The POST /unmute operation had still not been REST-ified.
Diffs
-----
/branches/12/rest-api/api-docs/sounds.json 401260
/branches/12/rest-api/api-docs/recordings.json 401260
/branches/12/rest-api/api-docs/playback.json 401260
/branches/12/rest-api/api-docs/endpoints.json 401260
/branches/12/rest-api/api-docs/channels.json 401260
/branches/12/rest-api/api-docs/bridges.json 401260
/branches/12/rest-api/api-docs/asterisk.json 401260
/branches/12/rest-api/api-docs/applications.json 401260
/branches/12/rest-api-templates/swagger_model.py 401260
/branches/12/rest-api-templates/rest_handler.mustache 401260
/branches/12/rest-api-templates/res_ari_resource.c.mustache 401260
/branches/12/rest-api-templates/asterisk_processor.py 401260
/branches/12/rest-api-templates/ari_resource.h.mustache 401260
/branches/12/rest-api-templates/ari_resource.c.mustache 401260
/branches/12/res/res_ari_sounds.c 401260
/branches/12/res/res_ari_recordings.c 401260
/branches/12/res/res_ari_playback.c 401260
/branches/12/res/res_ari_events.c 401260
/branches/12/res/res_ari_endpoints.c 401260
/branches/12/res/res_ari_channels.c 401260
/branches/12/res/res_ari_bridges.c 401260
/branches/12/res/res_ari_asterisk.c 401260
/branches/12/res/res_ari_applications.c 401260
/branches/12/res/ari/resource_sounds.c 401260
/branches/12/res/ari/resource_sounds.h 401260
/branches/12/res/ari/resource_recordings.c 401260
/branches/12/res/ari/resource_recordings.h 401260
/branches/12/res/ari/resource_playback.c 401260
/branches/12/res/ari/resource_playback.h 401260
/branches/12/res/ari/resource_events.c 401260
/branches/12/res/ari/resource_events.h 401260
/branches/12/res/ari/resource_endpoints.c 401260
/branches/12/res/ari/resource_endpoints.h 401260
/branches/12/res/ari/resource_channels.c 401260
/branches/12/res/ari/resource_channels.h 401260
/branches/12/res/ari/resource_bridges.c 401260
/branches/12/res/ari/resource_bridges.h 401260
/branches/12/res/ari/resource_asterisk.c 401260
/branches/12/res/ari/resource_asterisk.h 401260
/branches/12/res/ari/resource_applications.c 401260
/branches/12/res/ari/resource_applications.h 401260
Diff: https://reviewboard.asterisk.org/r/2940/diff/
Testing
-------
Hit each ARI resource to ensure it still responded.
Thanks,
David Lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131107/9d949958/attachment.html>
More information about the asterisk-dev
mailing list