[asterisk-commits] file: branch 12 r402139 - in /branches/12: res/ rest-api/api-docs/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 29 06:15:19 CDT 2013


Author: file
Date: Tue Oct 29 06:15:16 2013
New Revision: 402139

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402139
Log:
res_ari_playback: Add missing 404 error response for GET and DELETE.

(closes issue ASTERISK-22722)
Reported by: Richard Mudgett

Modified:
    branches/12/res/res_ari_playback.c
    branches/12/rest-api/api-docs/playback.json

Modified: branches/12/res/res_ari_playback.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_ari_playback.c?view=diff&rev=402139&r1=402138&r2=402139
==============================================================================
--- branches/12/res/res_ari_playback.c (original)
+++ branches/12/res/res_ari_playback.c Tue Oct 29 06:15:16 2013
@@ -85,6 +85,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* The playback cannot be found */
 		is_valid = 1;
 		break;
 	default:
@@ -141,6 +142,7 @@
 		break;
 	case 500: /* Internal Server Error */
 	case 501: /* Not Implemented */
+	case 404: /* The playback cannot be found */
 		is_valid = 1;
 		break;
 	default:

Modified: branches/12/rest-api/api-docs/playback.json
URL: http://svnview.digium.com/svn/asterisk/branches/12/rest-api/api-docs/playback.json?view=diff&rev=402139&r1=402138&r2=402139
==============================================================================
--- branches/12/rest-api/api-docs/playback.json (original)
+++ branches/12/rest-api/api-docs/playback.json Tue Oct 29 06:15:16 2013
@@ -25,6 +25,12 @@
 							"allowMultiple": false,
 							"dataType": "string"
 						}
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "The playback cannot be found"
+						}
 					]
 				},
 				{
@@ -40,6 +46,12 @@
 							"required": true,
 							"allowMultiple": false,
 							"dataType": "string"
+						}
+					],
+					"errorResponses": [
+						{
+							"code": 404,
+							"reason": "The playback cannot be found"
 						}
 					]
 				}




More information about the asterisk-commits mailing list