Accept database models as API inputs #274
Labels
api
Issue is affecting Python API
enhancement
New feature or request
model
This issue is affecting the database model
priority high
Right now, lookup values (ie. the Unit used when creating a Variable) have to be passed as
Union[int, str]
to the api functions, ie:api.add_variable(unit: Union[int, str])
.We should rework the whole ADD API to accept the actual model and its dictionary representation as well. Thus, the argument should be of type:
Union[int, str, models.Unit, dict]
.This might apply to the FIND APIs as well.
The text was updated successfully, but these errors were encountered: