diff options
author | Kevin Harwell <kharwell@digium.com> | 2013-11-12 22:17:28 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2013-11-12 22:17:28 +0000 |
commit | 4be01b4598f37431809980907d1ab7ce02d0e47a (patch) | |
tree | 290c7d55c8a83597ddb6a968768510125458212d /rest-api/api-docs/endpoints.json | |
parent | 94f19c82184bf508adc3f5e2398d0a776491b53c (diff) |
ari endpoints: GET /ari/endpoints/{invalid-tech} should return a 404
Implementation listing endpoints by technology returned an empty array if no
matching endpoints were found. Fixed so a "404 Not Found" will be returned
instead.
(closes issue ASTERISK-22803)
Reported by: David M. Lee
........
Merged revisions 402787 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api/api-docs/endpoints.json')
-rw-r--r-- | rest-api/api-docs/endpoints.json | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rest-api/api-docs/endpoints.json b/rest-api/api-docs/endpoints.json index c44e3dd7e..fb66357a7 100644 --- a/rest-api/api-docs/endpoints.json +++ b/rest-api/api-docs/endpoints.json @@ -35,6 +35,12 @@ "paramType": "path", "dataType": "string" } + ], + "errorResponses": [ + { + "code": 404, + "reason": "Endpoints not found" + } ] } ] @@ -61,6 +67,12 @@ "paramType": "path", "dataType": "string" } + ], + "errorResponses": [ + { + "code": 404, + "reason": "Endpoints not found" + } ] } ] |