averbis / averbis-python-api

Conveniently access the REST API of Averbis products using Python
Apache License 2.0
12 stars 4 forks source link

Support for lists in `annotation_types` parameter #149

Closed DavidHuebner closed 7 months ago

DavidHuebner commented 7 months ago

Is your feature request related to a problem? Please describe. The parameter annotation_types exists for various endpoints and it allows for filtering the annotation types that should be saved or exported. Currently, we only support str as input as the backend expects a string. If one wants to specify multiple annotation types to be saved, one needs to send a comma-separated list as a string. This is not very user-friendly, especially considering that passing a list in the client causes problems (observed in create_process).

Describe the solution you'd like Accept inputs in list[str] format in addition to str. The lists should be deduplicated and then internally converted to a string with ",".join(list).