Add support for ref parameter to get raw file API #6823

Closed
opened 2025-11-02 07:07:34 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @pditommaso on GitHub (Feb 7, 2021).

The current implementation of repoGetRawFile API does not provide the ability to specify a ref query parameter.

This limits the API functionality to retrieve the raw content only at the latest version on the current master branch, while it would be expected to be able to fetch the raw content at any specific commit id and branch/tag.

Originally created by @pditommaso on GitHub (Feb 7, 2021). The current implementation of [repoGetRawFile](https://try.gitea.io/api/swagger#/repository/repoGetRawFile) API does not provide the ability to specify a `ref` query parameter. This limits the API functionality to retrieve the raw content only at the latest version on the current master branch, while it would be expected to be able to fetch the raw content at any specific commit id and branch/tag.
GiteaMirror added the modifies/api label 2025-11-02 07:07:34 -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#6823