diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-10-15 20:03:19 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-10-15 20:03:19 +0000 |
commit | ec837060038cff524e4b62536b38efead80553bf (patch) | |
tree | d287571359faf70b3d0a8a5ea1749f8e0d5d523d /rest-api/api-docs | |
parent | 6072e043cfd032a85fc12a7aa772684baac5b44b (diff) |
Ensure bridge record error responses validate
This adds the list of expected errors to the /bridges/{bridgeId}/record
ARI documentation so that outbound 4xx errors validate properly.
Previously, this would result in a response validation failure.
(closes issue ASTERISK-22627)
Reported by: Joshua Colp
........
Merged revisions 401018 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api/api-docs')
-rw-r--r-- | rest-api/api-docs/bridges.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rest-api/api-docs/bridges.json b/rest-api/api-docs/bridges.json index 640cf4c5d..48e5696c5 100644 --- a/rest-api/api-docs/bridges.json +++ b/rest-api/api-docs/bridges.json @@ -453,6 +453,20 @@ ] } } + ], + "errorResponses": [ + { + "code": 400, + "reason": "Recording name invalid" + }, + { + "code": 404, + "reason": "Bridge not found" + }, + { + "code": 409, + "reason": "Bridge not in Stasis application; Recording already in progress" + } ] } ] |