From dbfd6207290d1eee53fddec4c7c3b4aac0b2d47a Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 8 Apr 2015 18:48:36 +0100 Subject: 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 --- extensions/Example/Config.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'extensions/Example/Config.pm') 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; -- cgit v1.2.3-24-g4f1b