Oxen-AI / Oxen

Oxen.ai's core rust library, server, and CLI
https://oxen.ai
Apache License 2.0
176 stars 11 forks source link

Add oxen-revision-id header to the GET file response #302

Closed lewazo closed 4 months ago

lewazo commented 4 months ago

This adds the revision id in the response's header.

If the file is requested through a revision id, ie. /api/repos/lewazo/repo_1/file/e44f1df241b9e64a/file_1.csv, oxen-revision-id will equal to e44f1df241b9e64a.

If the file is requested through a branch name, ie. /api/repos/lewazo/repo_1/file/main/file_1.csv, oxen-revision-id will equal to main's HEAD commit id.

gschoeni commented 4 months ago

Tested end to end with hub changes