generatesubstringmatches module

class generatesubstringmatches.GenerateSubstringMatches

Bases: Resource

methods: ClassVar[Optional[Collection[str]]] = {'POST'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

post()

returns vocabulary terms for a header/substring pair

Parameters:
  • header (str) – which header

  • substring (str) – portion of string to check

Returns:

a list of terms with matching strings

Return type:

list

Examples

{

“header”:”species”, “substring”:”porcupi”

}