Closed xgui3783 closed 8 months ago
current implementation of getting default repo seems to be incorrect. e.g.
now
from ebrains_drive import DriveApiClient token="ey..." client = DriveApiClient(token=token) repo = client.repos.get_default_repo() print(repo) # AttributeError: 'Repo' object has no attribute 'id'
according to seafile api it appears the /api2/default-repo endpoint returns the id, and from the id, one can get the repo.
/api2/default-repo
This PR addresses this issue.
current implementation of getting default repo seems to be incorrect. e.g.
now
according to seafile api it appears the
/api2/default-repo
endpoint returns the id, and from the id, one can get the repo.This PR addresses this issue.