ari endpoints: GET /ari/endpoints/{invalid-tech} should return a 404
authorKevin Harwell <kharwell@digium.com>
Tue, 12 Nov 2013 22:17:28 +0000 (22:17 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 12 Nov 2013 22:17:28 +0000 (22:17 +0000)
commit4be01b4598f37431809980907d1ab7ce02d0e47a
tree290c7d55c8a83597ddb6a968768510125458212d
parent94f19c82184bf508adc3f5e2398d0a776491b53c
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
res/ari/resource_endpoints.c
res/res_ari_endpoints.c
rest-api/api-docs/endpoints.json