API Repo Get File Content Endpoint returns non-working "blob" HTML_URL #3511

Closed
opened 2025-11-02 05:15:27 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @richmahn on GitHub (Jun 25, 2019).

I noticed that the URL for the API endpoint for getting the file contents of a repo is not returning a proper URL for the "html_url" field. It uses the "blob" URL that Github uses, but we don't have that as a HTML endpoint. Need to be able to access the file in HTML the same way as on Github, not just for a branch, but also a commit ID.

Originally created by @richmahn on GitHub (Jun 25, 2019). I noticed that the URL for the API endpoint for getting the file contents of a repo is not returning a proper URL for the "html_url" field. It uses the "blob" URL that Github uses, but we don't have that as a HTML endpoint. Need to be able to access the file in HTML the same way as on Github, not just for a branch, but also a commit ID.
GiteaMirror added the type/bug label 2025-11-02 05:15:27 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3511