diff options
author | David Lawrence <dkl@mozilla.com> | 2015-04-08 19:48:36 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-04-08 19:48:36 +0200 |
commit | dbfd6207290d1eee53fddec4c7c3b4aac0b2d47a (patch) | |
tree | aa190d8cc9e2b313dd7e85bf763c1bfe5502b75d /rest.cgi | |
parent | e6d2fb75aa3c183323c534a214f3dd9be5638676 (diff) | |
download | bugzilla-dbfd6207290d1eee53fddec4c7c3b4aac0b2d47a.tar.gz bugzilla-dbfd6207290d1eee53fddec4c7c3b4aac0b2d47a.tar.xz |
Bug 1051056: The REST API needs to be versioned so that new changes can be made that do not break compatibility
r=dylan,a=glob
Diffstat (limited to 'rest.cgi')
-rwxr-xr-x | rest.cgi | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -15,17 +15,10 @@ use lib qw(. lib); use Bugzilla; use Bugzilla::Constants; use Bugzilla::Error; -use Bugzilla::WebService::Constants; BEGIN { - if (!Bugzilla->feature('rest') - || !Bugzilla->feature('jsonrpc')) - { + if (!Bugzilla->feature('rest')) { ThrowUserError('feature_disabled', { feature => 'rest' }); } } -use Bugzilla::WebService::Server::REST; Bugzilla->usage_mode(USAGE_MODE_REST); -local @INC = (bz_locations()->{extensionsdir}, @INC); -my $server = new Bugzilla::WebService::Server::REST; -$server->version('1.1'); -$server->handle(); +Bugzilla->api_server->handle(); |