summaryrefslogtreecommitdiffstats
path: root/extensions/Example/Config.pm
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-04-08 19:48:36 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-04-08 19:48:36 +0200
commitdbfd6207290d1eee53fddec4c7c3b4aac0b2d47a (patch)
treeaa190d8cc9e2b313dd7e85bf763c1bfe5502b75d /extensions/Example/Config.pm
parente6d2fb75aa3c183323c534a214f3dd9be5638676 (diff)
downloadbugzilla-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 'extensions/Example/Config.pm')
-rw-r--r--extensions/Example/Config.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/Example/Config.pm b/extensions/Example/Config.pm
index e7782ef6c..16708e3f8 100644
--- a/extensions/Example/Config.pm
+++ b/extensions/Example/Config.pm
@@ -29,4 +29,12 @@ use constant OPTIONAL_MODULES => [
},
];
+# 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;