@@ -0,0 +1,1960 @@
+package fr.esiea.windmeal.controller.util;%0A%0Aimport fr.esiea.windmeal.model.enumeration.Tag;%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%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0A/**%0A * Copyright (c) 2013 ESIEA M. Labusquiere D. D%C3%A9%C3%AFs%0A * %3Cp/%3E%0A * Permission is hereby granted, free of charge, to any person obtaining%0A * a copy of this software and associated documentation files (the%0A * %22Software%22), to deal in the Software without restriction, including%0A * without limitation the rights to use, copy, modify, merge, publish,%0A * distribute, sublicense, and/or sell copies of the Software, and to%0A * permit persons to whom the Software is furnished to do so, subject to%0A * the following conditions:%0A * %3Cp/%3E%0A * The above copyright notice and this permission notice shall be%0A * included in all copies or substantial portions of the Software.%0A * %3Cp/%3E%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND,%0A * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF%0A * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND%0A * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE%0A * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION%0A * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION%0A * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A */%0A@Controller%0A@RequestMapping(%22/util%22)%0Apublic class UtilCtrl %7B%0A%0A    @RequestMapping(value=%22/tags%22, method = RequestMethod.GET, produces = %22application/json%22)%0A    @ResponseBody%0A    public Iterable%3CTag%3E getAll() %7B%0A%0A        List%3CTag%3E tags = new ArrayList%3CTag%3E();%0A        for (Tag tag : Tag.class.getEnumConstants()) %7B%0A            tags.add(tag);%0A        %7D%0A        return tags;%0A    %7D%0A%7D%0A

Add rest/util/tags to get all tags