enabling http POST for a couple of name catalogue controller methods
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / ReferenceController.java
index 530374bb2c09e028ccd7d1f7267abfceadc19aa8..fd64e97f1d2063ad04a9287ec87d7fcbae86d37e 100644 (file)
@@ -20,8 +20,6 @@ import javax.servlet.http.HttpServletResponse;
 \r
 import org.springframework.beans.factory.annotation.Autowired;\r
 import org.springframework.stereotype.Controller;\r
-import org.springframework.web.bind.WebDataBinder;\r
-import org.springframework.web.bind.annotation.InitBinder;\r
 import org.springframework.web.bind.annotation.PathVariable;\r
 import org.springframework.web.bind.annotation.RequestMapping;\r
 import org.springframework.web.bind.annotation.RequestMethod;\r
@@ -31,7 +29,7 @@ import org.springframework.web.servlet.ModelAndView;
 import eu.etaxonomy.cdm.api.service.IReferenceService;\r
 import eu.etaxonomy.cdm.model.reference.INomenclaturalReference;\r
 import eu.etaxonomy.cdm.model.reference.Reference;\r
-import eu.etaxonomy.cdm.remote.editor.UUIDPropertyEditor;\r
+import io.swagger.annotations.Api;\r
 \r
 /**\r
  * TODO write controller documentation\r
@@ -41,8 +39,9 @@ import eu.etaxonomy.cdm.remote.editor.UUIDPropertyEditor;
  */\r
 \r
 @Controller\r
+@Api("reference")\r
 @RequestMapping(value = {"/reference/{uuid}"})\r
-public class ReferenceController extends BaseController<Reference, IReferenceService>\r
+public class ReferenceController extends AbstractIdentifiableController<Reference, IReferenceService>\r
 {\r
 \r
     private static final List<String> NOMENCLATURAL_CITATION_INIT_STRATEGY = Arrays.asList(new String []{\r