diff options
author | Paul Belanger <paul.belanger@polybeacon.com> | 2013-10-15 15:30:39 +0000 |
---|---|---|
committer | Paul Belanger <paul.belanger@polybeacon.com> | 2013-10-15 15:30:39 +0000 |
commit | 6072e043cfd032a85fc12a7aa772684baac5b44b (patch) | |
tree | 0b44b1d891ddc27ab4987ada7492109fc2dbae18 /rest-api | |
parent | 2c927b871f570c9724f9957fb17d961ee9ecb45c (diff) |
Use POST / DELETE to toggle hold / moh for ARI channels
This change updates how we handle toggle events, rather then create two
different function names, we'll just use POST / DELETE from HTTP to handle it.
Review: https://reviewboard.asterisk.org/r/2906/
........
Merged revisions 400999 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api')
-rw-r--r-- | rest-api/api-docs/channels.json | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json index 9d60b2b7c..eeb56a5c6 100644 --- a/rest-api/api-docs/channels.json +++ b/rest-api/api-docs/channels.json @@ -433,11 +433,11 @@ ] }, { - "path": "/channels/{channelId}/unhold", + "path": "/channels/{channelId}/hold", "description": "Remove a channel from hold", "operations": [ { - "httpMethod": "POST", + "httpMethod": "DELETE", "summary": "Remove a channel from hold.", "nickname": "unholdChannel", "responseClass": "void", @@ -465,7 +465,7 @@ ] }, { - "path": "/channels/{channelId}/mohstart", + "path": "/channels/{channelId}/moh", "description": "Play music on hold to a channel", "operations": [ { @@ -506,11 +506,11 @@ ] }, { - "path": "/channels/{channelId}/mohstop", + "path": "/channels/{channelId}/moh", "description": "Stop playing music on hold to a channel", "operations": [ { - "httpMethod": "POST", + "httpMethod": "DELETE", "summary": "Stop playing music on hold to a channel.", "nickname": "mohStopChannel", "responseClass": "void", |