first fully working swagger doc on the cdm remote api. Model scan ist still disabled...
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / VocabularyListController.java
index ed88779bc2947f0bab6c953b500cdb3aa381dc34..cab7ccc9f5876aeb6217e263fcf337a1daf79817 100644 (file)
@@ -1,20 +1,25 @@
 // $Id$\r
 /**\r
 * Copyright (C) 2009 EDIT\r
-* European Distributed Institute of Taxonomy \r
+* European Distributed Institute of Taxonomy\r
 * http://www.e-taxonomy.eu\r
-* \r
+*\r
 * The contents of this file are subject to the Mozilla Public License Version 1.1\r
 * See LICENSE.TXT at the top of this package for the full license terms.\r
 */\r
 package eu.etaxonomy.cdm.remote.controller;\r
 \r
+import org.apache.log4j.Logger;\r
 import org.springframework.beans.factory.annotation.Autowired;\r
 import org.springframework.stereotype.Controller;\r
 import org.springframework.web.bind.annotation.RequestMapping;\r
 \r
+import com.wordnik.swagger.annotations.Api;\r
+\r
+import eu.etaxonomy.cdm.api.service.ITaxonService;\r
 import eu.etaxonomy.cdm.api.service.IVocabularyService;\r
 import eu.etaxonomy.cdm.model.common.TermVocabulary;\r
+import eu.etaxonomy.cdm.model.taxon.TaxonBase;\r
 \r
 /**\r
  * @author a.kohlbecker\r
@@ -22,17 +27,20 @@ import eu.etaxonomy.cdm.model.common.TermVocabulary;
  *\r
  */\r
 @Controller\r
-@RequestMapping(value = {"/termvocabulary/"})\r
-public class VocabularyListController extends BaseListController<TermVocabulary, IVocabularyService> {\r
-\r
-       /* (non-Javadoc)\r
-        * @see eu.etaxonomy.cdm.remote.controller.AbstractListController#setService(eu.etaxonomy.cdm.api.service.IService)\r
-        */\r
-       @Autowired\r
-       @Override\r
-       public void setService(IVocabularyService service) {\r
-               this.service = service;\r
-       }\r
+@Api("termVocabulary")\r
+@RequestMapping(value = {"/termVocabulary"})\r
+public class VocabularyListController extends IdentifiableListController<TermVocabulary, IVocabularyService> {\r
+\r
+    public static final Logger logger = Logger.getLogger(VocabularyListController.class);\r
+\r
+    /* (non-Javadoc)\r
+     * @see eu.etaxonomy.cdm.remote.controller.AbstractListController#setService(eu.etaxonomy.cdm.api.service.IService)\r
+     */\r
+    @Autowired\r
+    @Override\r
+    public void setService(IVocabularyService service) {\r
+        this.service = service;\r
+    }\r
 \r
 \r
 }\r