Skip to content

Commit

Permalink
families endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Feb 28, 2024
1 parent e52a611 commit ab8ed74
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions sig/plants.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ module Plants
# _@param_ `genus`
def self.find_genus: (String genus) -> ::HTTP::Response

# GET /families
def self.list_families: () -> ::HTTP::Response

# _@param_ `family`
def self.find_family: (String family) -> ::HTTP::Response

# HTTP Client
#
# @!attribute [r] config
Expand Down Expand Up @@ -48,6 +54,7 @@ module Plants

# Resources 'container' module
module Resources
include Plants::Resources::Families
include Plants::Resources::Genus
include Plants

Expand All @@ -57,6 +64,12 @@ module Plants
# _@param_ `genus`
def find_genus: (String genus) -> ::HTTP::Response

# GET /families
def list_families: () -> ::HTTP::Response

# _@param_ `family`
def find_family: (String family) -> ::HTTP::Response

# Genera module
# @see https://docs.trefle.io/reference#tag/Genus
module Genus
Expand Down Expand Up @@ -87,5 +100,15 @@ module Plants
# _@param_ `zone`
def list_plants_for_distribution_zone: (String zone) -> ::HTTP::Response
end

# Families module
# @see https://docs.trefle.io/reference#tag/Families
module Families
# GET /families
def list_families: () -> ::HTTP::Response

# _@param_ `family`
def find_family: (String family) -> ::HTTP::Response
end
end
end

0 comments on commit ab8ed74

Please sign in to comment.