retrievevocabrows module
- class retrievevocabrows.RetrieveVocabRowsResource
Bases:
Resource
- methods: ClassVar[Optional[Collection[str]]] = {'POST'}
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_url_rule
by default.
- post()
takes a valid string and a header and allows you to see the complete row
- Parameters:
header (str) – which vocabulary
valid_strings (list) – a string that exists as a representation of a main_string
- Returns:
the complete row for that string in that vocabulary
- Return type:
list
Examples
- {
“header”:”organ”, “valid_string”:”kidney”
}