bzrmirror%bugzilla.org f8138e2440 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


git-svn-id: svn://10.0.0.236/trunk@265911 18797224-902f-48f8-a5cc-f745e15eee43
2015-04-08 18:01:07 +00:00

41 lines
946 B
Perl

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
package Bugzilla::Extension::Example;
use 5.10.1;
use strict;
use warnings;
use constant NAME => 'Example';
use constant REQUIRED_MODULES => [
{
package => 'Data-Dumper',
module => 'Data::Dumper',
version => 0,
},
];
use constant OPTIONAL_MODULES => [
{
package => 'Acme',
module => 'Acme',
version => 1.11,
feature => ['example_acme'],
},
];
# The map determines which verion of
# the Core API an extension's API modules
# were written to work with.
use constant API_VERSION_MAP => {
'1_0' => '1_0',
'2_0' => '1_0'
};
__PACKAGE__->NAME;