Class: Api::V1::CiteController

Inherits:
ApiController
  • Object
show all
Defined in:
app/controllers/api/v1/cite_controller.rb

Instance Method Summary collapse

Instance Method Details

#count_valid_speciesObject



3
4
5
6
7
8
9
# File 'app/controllers/api/v1/cite_controller.rb', line 3

def count_valid_species
  @base = Queries::TaxonName::Filter.new(
    name: params.require(:taxon_name),
    exact: true,
    validify: true
  ).all
end