Class SpeciesController

java.lang.Object
org.openforis.collect.web.controller.SpeciesController

@Controller public class SpeciesController extends Object
  • Constructor Details

    • SpeciesController

      public SpeciesController()
  • Method Details

    • exportSpecies

      @RequestMapping(value="api/survey/{surveyId}/taxonomy/{taxonomyId}/export.csv", method=GET) @ResponseBody public String exportSpecies(javax.servlet.http.HttpServletResponse response, @PathVariable("surveyId") Integer surveyId, @PathVariable("taxonomyId") Integer taxonomyId) throws IOException
      Throws:
      IOException
    • findTaxon

      @Secured("ROLE_ENTRY") @RequestMapping(value="api/survey/{surveyId}/taxonomy/{taxonomyName}/query", method=POST) @ResponseBody public List<TaxonOccurrenceProxy> findTaxon(@PathVariable("surveyId") int surveyId, @PathVariable("taxonomyName") String taxonomyName, @RequestBody SpeciesController.TaxonQuery query)