Hey folks, is there official API documentation? Th...
# help
j
Hey folks, is there official API documentation? There's a couple of different sdk docs floating out there on the internet and as I understand it some of them are deprecated. More specifically, I'm trying to access the commit history of a file via python sdk. I've found the
RefsApi.log_commits()
function, but there appears to be an internal issue with conflicting return types (function promises a
CommitList
but actually returns
str
) that causes an unavoidable
500
when trying to invoke it. Poking through the source, I've managed to get a working call via a request to
Copy code
url = f"{config.lakefs_url}/api/v1/repositories/{repo_name}/refs/main/commits"
but this learning process has taken me much longer than I would have liked to arrive at this. First started using LakeFS a few weeks ago, so there might be meta knowledge gaps over what docs to be using or best practice patterns. Open to all feedback, thanks!
n
lakeFS API documentation can be found here Documentation of the python SDK is here I noticed you are using the generated SDK. I recommend taking a look at the high level SDK
gratitude thank you 1
lakefs 1