@@ -0,0 +1,2061 @@
+/*%0A *  *%0A * ProActive Parallel Suite(TM): The Java(TM) library for%0A *    Parallel, Distributed, Multi-Core Computing for%0A *    Enterprise Grids & Clouds%0A *%0A * Copyright (C) 1997-2016 INRIA/University of%0A *                 Nice-Sophia Antipolis/ActiveEon%0A * Contact: proactive@ow2.org or contact@activeeon.com%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Affero General Public License%0A * as published by the Free Software Foundation; version 3 of%0A * the License.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307%0A * USA%0A *%0A * If needed, contact us to obtain a release under GPL Version 2 or 3%0A * or a different license than the AGPL.%0A *%0A *  Initial developer(s):               The ProActive Team%0A *                        http://proactive.inria.fr/team_members.htm%0A *  Contributor(s):%0A *%0A *  * $$ACTIVEEON_INITIAL_DEV$$%0A */%0Apackage org.ow2.proactive.scheduling.api.controller;%0A%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0A%0A%0A@Controller%0Apublic class ApiController %7B%0A%0A    @RequestMapping(value = %22v1%22, method = %7B RequestMethod.DELETE, RequestMethod.GET, RequestMethod.HEAD,%0A            RequestMethod.OPTIONS, RequestMethod.POST, RequestMethod.PUT, RequestMethod.TRACE %7D)%0A    @ResponseBody%0A    public String v1() %7B%0A        return %22TODO: forward to /rest/%22;%0A    %7D%0A%0A    @RequestMapping(value = %22v2%22, method = RequestMethod.GET)%0A    public String v2() %7B%0A        return %22/index.html%22;%0A    %7D%0A%0A%7D%0A

Add new controller to differentiate API v1 and v2